application-druid-bjzm.yml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. # 数据源配置
  2. spring:
  3. profiles:
  4. include: config-druid-bjzm,common
  5. # redis 配置
  6. redis:
  7. host: 172.16.16.8
  8. port: 6379
  9. # 数据库索引
  10. database: 0
  11. # 密码
  12. password:
  13. # 连接超时时间
  14. timeout: 10s
  15. lettuce:
  16. pool:
  17. # 连接池中的最小空闲连接
  18. min-idle: 0
  19. # 连接池中的最大空闲连接
  20. max-idle: 8
  21. # 连接池的最大数据库连接数
  22. max-active: 100
  23. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  24. max-wait: -1ms
  25. datasource:
  26. # clickhouse:
  27. # type: com.alibaba.druid.pool.DruidDataSource
  28. # driverClassName: com.clickhouse.jdbc.ClickHouseDriver
  29. # url: jdbc:clickhouse://1.14.104.71:8123/sop_test?compress=0&use_server_time_zone=true&use_client_time_zone=false&timezone=Asia/Shanghai
  30. # username: rt_2024
  31. # password: Yzx_19860213
  32. # initialSize: 10
  33. # maxActive: 100
  34. # minIdle: 10
  35. # maxWait: 6000
  36. mysql:
  37. type: com.alibaba.druid.pool.DruidDataSource
  38. driverClassName: com.mysql.cj.jdbc.Driver
  39. druid:
  40. # 初始连接数
  41. initialSize: 500
  42. # 最小连接池数量
  43. minIdle: 500
  44. # 最大连接池数量
  45. maxActive: 2000
  46. # 配置获取连接等待超时的时间
  47. maxWait: 60000
  48. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  49. timeBetweenEvictionRunsMillis: 60000
  50. # 配置一个连接在池中最小生存的时间,单位是毫秒
  51. minEvictableIdleTimeMillis: 300000
  52. # 配置一个连接在池中最大生存的时间,单位是毫秒
  53. maxEvictableIdleTimeMillis: 900000
  54. # 配置检测连接是否有效
  55. validationQuery: SELECT 1 FROM DUAL
  56. testWhileIdle: true
  57. testOnBorrow: false
  58. testOnReturn: false
  59. webStatFilter:
  60. enabled: true
  61. statViewServlet:
  62. enabled: true
  63. # 设置白名单,不填则允许所有访问
  64. allow:
  65. url-pattern: /druid/*
  66. # 控制台管理用户名和密码
  67. login-username: fs
  68. login-password: 123456
  69. filter:
  70. stat:
  71. enabled: true
  72. # 慢SQL记录
  73. log-slow-sql: true
  74. slow-sql-millis: 1000
  75. merge-sql: true
  76. wall:
  77. config:
  78. multi-statement-allow: true
  79. # 主库数据源
  80. master:
  81. url: jdbc:mysql://172.16.16.40:3306/fs_his?allowMultiQueries=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  82. username: root
  83. password: Ylrz_1q2w3e4r5t6y
  84. # 初始连接数
  85. initialSize: 500
  86. # 最小连接池数量
  87. minIdle: 500
  88. # 最大连接池数量
  89. maxActive: 2000
  90. # 配置获取连接等待超时的时间
  91. maxWait: 60000
  92. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  93. timeBetweenEvictionRunsMillis: 60000
  94. # 配置一个连接在池中最小生存的时间,单位是毫秒
  95. minEvictableIdleTimeMillis: 300000
  96. # 配置一个连接在池中最大生存的时间,单位是毫秒
  97. maxEvictableIdleTimeMillis: 900000
  98. # 配置检测连接是否有效
  99. validationQuery: SELECT 1 FROM DUAL
  100. testWhileIdle: true
  101. testOnBorrow: false
  102. testOnReturn: false
  103. webStatFilter:
  104. enabled: true
  105. statViewServlet:
  106. enabled: true
  107. # 设置白名单,不填则允许所有访问
  108. allow:
  109. url-pattern: /druid/*
  110. # 控制台管理用户名和密码
  111. login-username: fs
  112. login-password: 123456
  113. filter:
  114. stat:
  115. enabled: true
  116. # 慢SQL记录
  117. log-slow-sql: true
  118. slow-sql-millis: 1000
  119. merge-sql: true
  120. wall:
  121. config:
  122. multi-statement-allow: true
  123. # 从库数据源
  124. slave:
  125. # 从数据源开关/默认关闭
  126. enabled: true
  127. url: jdbc:mysql://172.16.16.135:3306/fs_his?allowMultiQueries=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  128. username: root
  129. password: Ylrz_1q2w3e4r5t6y
  130. # 初始连接数
  131. initialSize: 500
  132. # 最小连接池数量
  133. minIdle: 500
  134. # 最大连接池数量
  135. maxActive: 2000
  136. # 配置获取连接等待超时的时间
  137. maxWait: 60000
  138. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  139. timeBetweenEvictionRunsMillis: 60000
  140. # 配置一个连接在池中最小生存的时间,单位是毫秒
  141. minEvictableIdleTimeMillis: 300000
  142. # 配置一个连接在池中最大生存的时间,单位是毫秒
  143. maxEvictableIdleTimeMillis: 900000
  144. # 配置检测连接是否有效
  145. validationQuery: SELECT 1 FROM DUAL
  146. testWhileIdle: true
  147. testOnBorrow: false
  148. testOnReturn: false
  149. webStatFilter:
  150. enabled: true
  151. statViewServlet:
  152. enabled: true
  153. # 设置白名单,不填则允许所有访问
  154. allow:
  155. url-pattern: /druid/*
  156. # 控制台管理用户名和密码
  157. login-username: fs
  158. login-password: 123456
  159. filter:
  160. stat:
  161. enabled: true
  162. # 慢SQL记录
  163. log-slow-sql: true
  164. slow-sql-millis: 1000
  165. merge-sql: true
  166. wall:
  167. config:
  168. multi-statement-allow: true
  169. sop:
  170. type: com.alibaba.druid.pool.DruidDataSource
  171. driverClassName: com.mysql.cj.jdbc.Driver
  172. druid:
  173. # 主库数据源
  174. master:
  175. url: jdbc:mysql://gz-cdb-ofgnuz1n.sql.tencentcdb.com:26872/fs_his_sop?allowMultiQueries=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  176. username: root
  177. password: Ylrz_1q2w3e4r5t6y
  178. # 初始连接数
  179. initialSize: 5
  180. # 最小连接池数量
  181. minIdle: 10
  182. # 最大连接池数量
  183. maxActive: 20
  184. # 配置获取连接等待超时的时间
  185. maxWait: 60000
  186. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  187. timeBetweenEvictionRunsMillis: 60000
  188. # 配置一个连接在池中最小生存的时间,单位是毫秒
  189. minEvictableIdleTimeMillis: 300000
  190. # 配置一个连接在池中最大生存的时间,单位是毫秒
  191. maxEvictableIdleTimeMillis: 900000
  192. # 配置检测连接是否有效
  193. validationQuery: SELECT 1 FROM DUAL
  194. testWhileIdle: true
  195. testOnBorrow: false
  196. testOnReturn: false
  197. webStatFilter:
  198. enabled: true
  199. statViewServlet:
  200. enabled: true
  201. # 设置白名单,不填则允许所有访问
  202. allow:
  203. url-pattern: /druid/*
  204. # 控制台管理用户名和密码
  205. login-username: fs
  206. login-password: 123456
  207. filter:
  208. stat:
  209. enabled: true
  210. # 慢SQL记录
  211. log-slow-sql: true
  212. slow-sql-millis: 1000
  213. merge-sql: true
  214. wall:
  215. config:
  216. multi-statement-allow: true
  217. rocketmq:
  218. name-server: rmq-1gawpw9p3.rocketmq.gz.qcloud.tencenttdmq.com:8080
  219. producer:
  220. group: my-producer-group
  221. access-key: ak1gawpw9p33db21b4aaaf2 # 替换为实际的 accessKey
  222. secret-key: sk90be66c23f39ad85 # 替换为实际的 secretKey
  223. consumer:
  224. group: common-group
  225. access-key: ak1gawpw9p33db21b4aaaf2 # 替换为实际的 accessKey
  226. secret-key: sk90be66c23f39ad85 # 替换为实际的 secretKey
  227. openIM:
  228. secret: openIM123
  229. userID: imAdmin
  230. url: https://localhost/api
  231. #是否为新商户,新商户不走mpOpenId
  232. isNewWxMerchant: true
  233. #是否使用新im
  234. im:
  235. type: NONE