1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- server:
- port: ${SERVER_PORT:8864}
- spring:
- application:
- name: ibms-switch
- datasource:
- dynamic:
- primary: master_1 #设置默认的数据源或者数据源组,默认值即为master
- strict: true #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
- datasource:
- master_1:
- url: jdbc:mysql://192.168.64.15:9934/dmp_rwd?serverTimezone=GMT&useUnicode=true&useSSL=false&characterEncoding=UTF-8&allowMultiQueries=true
- username: root
- password: D56dLvRbSy5bMn
- driver-class-name: com.mysql.cj.jdbc.Driver
- type: com.alibaba.druid.pool.DruidDataSource
- druid:
- initial-size: 10
- max-active: 20
- min-idle: 10
- max-wait: 60000
- validation-query: select 1
- test-on-borrow: false
- test-on-return: false
- test-while-idle: true
- filters: stat,slf4j
- keep-alive: true
- pool-prepared-statements: true
- min-evictable-idle-time-millis: 100000
- max-evictable-idle-time-millis: 200000
- time-between-eviction-runs-millis: 50000
- max-pool-prepared-statement-per-connection-size: 20
- master_2:
- url: jdbc:mysql://192.168.64.15:9934/ibms-switch?serverTimezone=GMT&useUnicode=true&useSSL=false&characterEncoding=UTF-8&allowMultiQueries=true
- username: root
- password: D56dLvRbSy5bMn
- driver-class-name: com.mysql.cj.jdbc.Driver
- type: com.alibaba.druid.pool.DruidDataSource
- druid:
- initial-size: 10
- max-active: 20
- min-idle: 10
- max-wait: 60000
- validation-query: select 1
- test-on-borrow: false
- test-on-return: false
- test-while-idle: true
- filters: stat,slf4j
- keep-alive: true
- pool-prepared-statements: true
- min-evictable-idle-time-millis: 100000
- max-evictable-idle-time-millis: 200000
- time-between-eviction-runs-millis: 50000
- max-pool-prepared-statement-per-connection-size: 20
-
- mybatis-plus:
- mapper-locations: classpath:/*mapper/*.xml
- typeAliasesPackage: com.persagy.transfer.pojo.dto
-
- integrated:
- swagger:
- enabled: true
- title: 数据转换中心
- description: 数据转换中心接口文档
- version: 1.0.0
- base-package: com.persagy.transfer.controller
|