|
|
@ -3,8 +3,43 @@ server: |
|
|
|
port: 8400 |
|
|
|
port: 8400 |
|
|
|
|
|
|
|
|
|
|
|
#数据源配置 |
|
|
|
#数据源配置 |
|
|
|
|
|
|
|
#spring: |
|
|
|
|
|
|
|
# datasource: |
|
|
|
|
|
|
|
# url: ${blade.datasource.dev.url} |
|
|
|
|
|
|
|
# username: ${blade.datasource.dev.username} |
|
|
|
|
|
|
|
# password: ${blade.datasource.dev.password} |
|
|
|
|
|
|
|
|
|
|
|
spring: |
|
|
|
spring: |
|
|
|
|
|
|
|
#排除DruidDataSourceAutoConfigure |
|
|
|
|
|
|
|
autoconfigure: |
|
|
|
|
|
|
|
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure |
|
|
|
|
|
|
|
datasource: |
|
|
|
|
|
|
|
dynamic: |
|
|
|
|
|
|
|
druid: |
|
|
|
|
|
|
|
#通用校验配置 |
|
|
|
|
|
|
|
validation-query: select 1 |
|
|
|
|
|
|
|
#启用sql日志拦截器 |
|
|
|
|
|
|
|
proxy-filters: |
|
|
|
|
|
|
|
- sqlLogInterceptor |
|
|
|
|
|
|
|
#设置默认的数据源或者数据源组,默认值即为master |
|
|
|
|
|
|
|
primary: master |
|
|
|
datasource: |
|
|
|
datasource: |
|
|
|
url: ${blade.datasource.test.url} |
|
|
|
master: |
|
|
|
username: ${blade.datasource.test.username} |
|
|
|
druid: |
|
|
|
password: ${blade.datasource.test.password} |
|
|
|
#独立校验配置 |
|
|
|
|
|
|
|
validation-query: select 1 |
|
|
|
|
|
|
|
#oracle校验 |
|
|
|
|
|
|
|
#validation-query: select 1 from dual |
|
|
|
|
|
|
|
url: ${blade.datasource.basicdata.master.url} |
|
|
|
|
|
|
|
username: ${blade.datasource.basicdata.master.username} |
|
|
|
|
|
|
|
password: ${blade.datasource.basicdata.master.password} |
|
|
|
|
|
|
|
slave: |
|
|
|
|
|
|
|
druid: |
|
|
|
|
|
|
|
#独立校验配置 |
|
|
|
|
|
|
|
validation-query: select 1 |
|
|
|
|
|
|
|
#oracle校验 |
|
|
|
|
|
|
|
#validation-query: select 1 from dual |
|
|
|
|
|
|
|
url: ${blade.datasource.basicdata.slave.url} |
|
|
|
|
|
|
|
username: ${blade.datasource.basicdata.slave.username} |
|
|
|
|
|
|
|
password: ${blade.datasource.basicdata.slave.password} |
|
|
|
|
|
|
|
|
|
|
|