application-druid-xzt.yml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. # 数据源配置
  2. spring:
  3. profiles:
  4. include: config-druid-xzt,common
  5. # redis 配置
  6. redis:
  7. # 地址
  8. host: 10.206.0.12
  9. # 端口,默认为6379
  10. port: 6379
  11. # 数据库索引
  12. database: 0
  13. # 密码
  14. # password: Ylrz_1q2w3e4r5t6y
  15. password: ylrz147..
  16. # 连接超时时间
  17. timeout: 20s
  18. lettuce:
  19. pool:
  20. # 连接池中的最小空闲连接
  21. min-idle: 0
  22. # 连接池中的最大空闲连接
  23. max-idle: 8
  24. # 连接池的最大数据库连接数
  25. max-active: 8
  26. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  27. max-wait: -1ms
  28. datasource:
  29. mysql:
  30. type: com.alibaba.druid.pool.DruidDataSource
  31. driverClassName: com.mysql.cj.jdbc.Driver
  32. druid:
  33. # 主库数据源
  34. master:
  35. url: jdbc:mysql://10.206.0.14:3306/fs_his?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  36. username: root
  37. password: Ylrz_1q2w3e4r5t6y
  38. # 从库数据源
  39. slave:
  40. # 从数据源开关/默认关闭
  41. enabled: false
  42. url:
  43. username:
  44. password:
  45. # 初始连接数
  46. initialSize: 5
  47. # 最小连接池数量
  48. minIdle: 10
  49. # 最大连接池数量
  50. maxActive: 20
  51. # 配置获取连接等待超时的时间
  52. maxWait: 60000
  53. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  54. timeBetweenEvictionRunsMillis: 60000
  55. # 配置一个连接在池中最小生存的时间,单位是毫秒
  56. minEvictableIdleTimeMillis: 300000
  57. # 配置一个连接在池中最大生存的时间,单位是毫秒
  58. maxEvictableIdleTimeMillis: 900000
  59. # 配置检测连接是否有效
  60. validationQuery: SELECT 1 FROM DUAL
  61. testWhileIdle: true
  62. testOnBorrow: false
  63. testOnReturn: false
  64. webStatFilter:
  65. enabled: true
  66. statViewServlet:
  67. enabled: true
  68. # 设置白名单,不填则允许所有访问
  69. allow:
  70. url-pattern: /druid/*
  71. # 控制台管理用户名和密码
  72. login-username: fs
  73. login-password: 123456
  74. filter:
  75. stat:
  76. enabled: true
  77. # 慢SQL记录
  78. log-slow-sql: true
  79. slow-sql-millis: 1000
  80. merge-sql: true
  81. wall:
  82. config:
  83. multi-statement-allow: true
  84. sop:
  85. type: com.alibaba.druid.pool.DruidDataSource
  86. driverClassName: com.mysql.cj.jdbc.Driver
  87. druid:
  88. # 主库数据源
  89. master:
  90. url: jdbc:mysql://10.206.0.14:3306/fs_his_sop?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  91. username: root
  92. password: Ylrz_1q2w3e4r5t6y
  93. # 初始连接数
  94. initialSize: 5
  95. # 最小连接池数量
  96. minIdle: 10
  97. # 最大连接池数量
  98. maxActive: 20
  99. # 配置获取连接等待超时的时间
  100. maxWait: 60000
  101. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  102. timeBetweenEvictionRunsMillis: 60000
  103. # 配置一个连接在池中最小生存的时间,单位是毫秒
  104. minEvictableIdleTimeMillis: 300000
  105. # 配置一个连接在池中最大生存的时间,单位是毫秒
  106. maxEvictableIdleTimeMillis: 900000
  107. # 配置检测连接是否有效
  108. validationQuery: SELECT 1 FROM DUAL
  109. testWhileIdle: true
  110. testOnBorrow: false
  111. testOnReturn: false
  112. webStatFilter:
  113. enabled: true
  114. statViewServlet:
  115. enabled: true
  116. # 设置白名单,不填则允许所有访问
  117. allow:
  118. url-pattern: /druid/*
  119. # 控制台管理用户名和密码
  120. login-username: fs
  121. login-password: 123456
  122. filter:
  123. stat:
  124. enabled: true
  125. # 慢SQL记录
  126. log-slow-sql: true
  127. slow-sql-millis: 1000
  128. merge-sql: true
  129. wall:
  130. config:
  131. multi-statement-allow: true
  132. rocketmq:
  133. name-server: rmq-1243b25nj.rocketmq.gz.public.tencenttdmq.com:8080 # RocketMQ NameServer 地址
  134. producer:
  135. group: my-producer-group
  136. access-key: ak1243b25nj17d4b2dc1a03 # 替换为实际的 accessKey
  137. secret-key: sk08a7ea1f9f4b0237 # 替换为实际的 secretKey
  138. consumer:
  139. group: test-group
  140. access-key: ak1243b25nj17d4b2dc1a03 # 替换为实际的 accessKey
  141. secret-key: sk08a7ea1f9f4b0237 # 替换为实际的 secretKey