server: port: 9096 spring: datasource: dynamic: primary: master #设置默认的数据源或者数据源组,默认值即为master strict: true datasource: #主数据源 不使用@DS注解时默认使用主数据源 master: # 这里采用了配置文件取值的方式,可以直接替换为数据库连接 url: jdbc:oracle:thin:@//192.168.1.92:1521/orcl username: lts_dev password: ltsdev #副数据源 slave_1: url: jdbc:jtds:sqlserver://192.168.2.251:1433 username: sa password: 123456 druid: initial-size: 10 max-active: 100 min-idle: 10 max-wait: 60000 pool-prepared-statements: true max-pool-prepared-statement-per-connection-size: 20 time-between-eviction-runs-millis: 60000 min-evictable-idle-time-millis: 300000 test-while-idle: true test-on-borrow: false test-on-return: false keepAlive: true useGlobalDataSourceStat: true connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500 filter: wall: config: multi-statement-allow: true # mybatis-plus配置 mybatis-plus: global-config: db-config: id-type: INPUT configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl map-underscore-to-camel-case: true jdbc-type-for-null: 'null' type-aliases-package: com.lts.QC.*