You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#服务器端口
|
|
|
|
server:
|
|
|
|
port: 8300
|
|
|
|
|
|
|
|
#数据源配置
|
|
|
|
#spring:
|
|
|
|
# datasource:
|
|
|
|
# url: ${blade.datasource.dev.url}
|
|
|
|
# username: ${blade.datasource.dev.username}
|
|
|
|
# password: ${blade.datasource.dev.password}
|
|
|
|
|
|
|
|
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:
|
|
|
|
master:
|
|
|
|
druid:
|
|
|
|
#独立校验配置
|
|
|
|
validation-query: select 1
|
|
|
|
#oracle校验
|
|
|
|
#validation-query: select 1 from dual
|
|
|
|
url: ${blade.datasource.basic.master.url}
|
|
|
|
username: ${blade.datasource.basic.master.username}
|
|
|
|
password: ${blade.datasource.basic.master.password}
|
|
|
|
slave:
|
|
|
|
druid:
|
|
|
|
#独立校验配置
|
|
|
|
validation-query: select 1
|
|
|
|
#oracle校验
|
|
|
|
#validation-query: select 1 from dual
|
|
|
|
url: ${blade.datasource.basic.slave.url}
|
|
|
|
username: ${blade.datasource.basic.slave.username}
|
|
|
|
password: ${blade.datasource.basic.slave.password}
|
|
|
|
|