bootstrap.yml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. server:
  2. port: ${SERVER_PORT:8864}
  3. spring:
  4. application:
  5. name: ibms-switch
  6. datasource:
  7. dynamic:
  8. primary: master_1 #设置默认的数据源或者数据源组,默认值即为master
  9. strict: true #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
  10. datasource:
  11. master_1:
  12. url: jdbc:mysql://192.168.64.15:9934/dmp_rwd?serverTimezone=GMT&useUnicode=true&useSSL=false&characterEncoding=UTF-8&allowMultiQueries=true
  13. username: root
  14. password: D56dLvRbSy5bMn
  15. driver-class-name: com.mysql.cj.jdbc.Driver
  16. type: com.alibaba.druid.pool.DruidDataSource
  17. druid:
  18. initial-size: 10
  19. max-active: 20
  20. min-idle: 10
  21. max-wait: 60000
  22. validation-query: select 1
  23. test-on-borrow: false
  24. test-on-return: false
  25. test-while-idle: true
  26. filters: stat,slf4j
  27. keep-alive: true
  28. pool-prepared-statements: true
  29. min-evictable-idle-time-millis: 100000
  30. max-evictable-idle-time-millis: 200000
  31. time-between-eviction-runs-millis: 50000
  32. max-pool-prepared-statement-per-connection-size: 20
  33. master_2:
  34. url: jdbc:mysql://192.168.64.15:9934/ibms-switch?serverTimezone=GMT&useUnicode=true&useSSL=false&characterEncoding=UTF-8&allowMultiQueries=true
  35. username: root
  36. password: D56dLvRbSy5bMn
  37. driver-class-name: com.mysql.cj.jdbc.Driver
  38. type: com.alibaba.druid.pool.DruidDataSource
  39. druid:
  40. initial-size: 10
  41. max-active: 20
  42. min-idle: 10
  43. max-wait: 60000
  44. validation-query: select 1
  45. test-on-borrow: false
  46. test-on-return: false
  47. test-while-idle: true
  48. filters: stat,slf4j
  49. keep-alive: true
  50. pool-prepared-statements: true
  51. min-evictable-idle-time-millis: 100000
  52. max-evictable-idle-time-millis: 200000
  53. time-between-eviction-runs-millis: 50000
  54. max-pool-prepared-statement-per-connection-size: 20
  55. mybatis-plus:
  56. mapper-locations: classpath:/*mapper/*.xml
  57. typeAliasesPackage: com.persagy.transfer.pojo.dto
  58. integrated:
  59. swagger:
  60. enabled: true
  61. title: 数据转换中心
  62. description: 数据转换中心接口文档
  63. version: 1.0.0
  64. base-package: com.persagy.transfer.controller