提供一个 Spring Boot 读取多配置文件的示例

This commit is contained in:
YunaiV
2021-02-06 11:45:10 +08:00
parent 612861c955
commit b8015e87b3
3 changed files with 12 additions and 8 deletions

View File

@@ -0,0 +1,7 @@
spring:
# 数据源配置项 TODO 多数据源TODO 监控配置
datasource:
url: jdbc:mysql://127.0.1:33061/ruoyi-vue-pro?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT
driver-class-name: com.mysql.jdbc.Driver
username: root
password: 123456