|
|
@ -16,16 +16,29 @@ spring: |
|
|
|
datasource: |
|
|
|
datasource: |
|
|
|
dynamic: |
|
|
|
dynamic: |
|
|
|
druid: |
|
|
|
druid: |
|
|
|
|
|
|
|
#通用校验配置 |
|
|
|
|
|
|
|
validation-query: select 1 |
|
|
|
|
|
|
|
#启用sql日志拦截器 |
|
|
|
proxy-filters: |
|
|
|
proxy-filters: |
|
|
|
- sqlLogInterceptor |
|
|
|
- sqlLogInterceptor |
|
|
|
#设置默认的数据源或者数据源组,默认值即为master |
|
|
|
#设置默认的数据源或者数据源组,默认值即为master |
|
|
|
primary: master |
|
|
|
primary: master |
|
|
|
datasource: |
|
|
|
datasource: |
|
|
|
master: |
|
|
|
master: |
|
|
|
|
|
|
|
druid: |
|
|
|
|
|
|
|
#独立校验配置 |
|
|
|
|
|
|
|
validation-query: select 1 |
|
|
|
|
|
|
|
#oracle校验 |
|
|
|
|
|
|
|
#validation-query: select 1 from dual |
|
|
|
url: ${blade.datasource.demo.master.url} |
|
|
|
url: ${blade.datasource.demo.master.url} |
|
|
|
username: ${blade.datasource.demo.master.username} |
|
|
|
username: ${blade.datasource.demo.master.username} |
|
|
|
password: ${blade.datasource.demo.master.password} |
|
|
|
password: ${blade.datasource.demo.master.password} |
|
|
|
slave: |
|
|
|
slave: |
|
|
|
|
|
|
|
druid: |
|
|
|
|
|
|
|
#独立校验配置 |
|
|
|
|
|
|
|
validation-query: select 1 |
|
|
|
|
|
|
|
#oracle校验 |
|
|
|
|
|
|
|
#validation-query: select 1 from dual |
|
|
|
url: ${blade.datasource.demo.slave.url} |
|
|
|
url: ${blade.datasource.demo.slave.url} |
|
|
|
username: ${blade.datasource.demo.slave.username} |
|
|
|
username: ${blade.datasource.demo.slave.username} |
|
|
|
password: ${blade.datasource.demo.slave.password} |
|
|
|
password: ${blade.datasource.demo.slave.password} |
|
|
|