application-druid-bjzm.yml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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. master:
  42. url: jdbc:mysql://172.16.16.40:3306/fs_his?allowMultiQueries=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  43. username: root
  44. password: Ylrz_1q2w3e4r5t6y
  45. # 初始连接数
  46. initialSize: 500
  47. # 最小连接池数量
  48. minIdle: 500
  49. # 最大连接池数量
  50. maxActive: 2000
  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. # 从库数据源
  85. slave:
  86. # 从数据源开关/默认关闭
  87. enabled: true
  88. url: jdbc:mysql://172.16.0.24:3306/fs_his?allowMultiQueries=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  89. username: root
  90. password: Ylrz_1q2w3e4r5t6y
  91. # 初始连接数
  92. initialSize: 500
  93. # 最小连接池数量
  94. minIdle: 500
  95. # 最大连接池数量
  96. maxActive: 2000
  97. # 配置获取连接等待超时的时间
  98. maxWait: 60000
  99. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  100. timeBetweenEvictionRunsMillis: 60000
  101. # 配置一个连接在池中最小生存的时间,单位是毫秒
  102. minEvictableIdleTimeMillis: 300000
  103. # 配置一个连接在池中最大生存的时间,单位是毫秒
  104. maxEvictableIdleTimeMillis: 900000
  105. # 配置检测连接是否有效
  106. validationQuery: SELECT 1 FROM DUAL
  107. testWhileIdle: true
  108. testOnBorrow: false
  109. testOnReturn: false
  110. webStatFilter:
  111. enabled: true
  112. statViewServlet:
  113. enabled: true
  114. # 设置白名单,不填则允许所有访问
  115. allow:
  116. url-pattern: /druid/*
  117. # 控制台管理用户名和密码
  118. login-username: fs
  119. login-password: 123456
  120. filter:
  121. stat:
  122. enabled: true
  123. # 慢SQL记录
  124. log-slow-sql: true
  125. slow-sql-millis: 1000
  126. merge-sql: true
  127. wall:
  128. config:
  129. multi-statement-allow: true
  130. sop:
  131. type: com.alibaba.druid.pool.DruidDataSource
  132. driverClassName: com.mysql.cj.jdbc.Driver
  133. druid:
  134. # 主库数据源
  135. master:
  136. 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
  137. username: root
  138. password: Ylrz_1q2w3e4r5t6y
  139. # 初始连接数
  140. initialSize: 5
  141. # 最小连接池数量
  142. minIdle: 10
  143. # 最大连接池数量
  144. maxActive: 20
  145. # 配置获取连接等待超时的时间
  146. maxWait: 60000
  147. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  148. timeBetweenEvictionRunsMillis: 60000
  149. # 配置一个连接在池中最小生存的时间,单位是毫秒
  150. minEvictableIdleTimeMillis: 300000
  151. # 配置一个连接在池中最大生存的时间,单位是毫秒
  152. maxEvictableIdleTimeMillis: 900000
  153. # 配置检测连接是否有效
  154. validationQuery: SELECT 1 FROM DUAL
  155. testWhileIdle: true
  156. testOnBorrow: false
  157. testOnReturn: false
  158. webStatFilter:
  159. enabled: true
  160. statViewServlet:
  161. enabled: true
  162. # 设置白名单,不填则允许所有访问
  163. allow:
  164. url-pattern: /druid/*
  165. # 控制台管理用户名和密码
  166. login-username: fs
  167. login-password: 123456
  168. filter:
  169. stat:
  170. enabled: true
  171. # 慢SQL记录
  172. log-slow-sql: true
  173. slow-sql-millis: 1000
  174. merge-sql: true
  175. wall:
  176. config:
  177. multi-statement-allow: true
  178. rocketmq:
  179. name-server: localhost:8080
  180. producer:
  181. group: my-producer-group
  182. access-key: ak16xj8o92zp984557f83ba2 # 替换为实际的 accessKey
  183. secret-key: sk2ff1c6b15b74b888 # 替换为实际的 secretKey
  184. consumer:
  185. group: common-group
  186. access-key: ak16xj8o92zp984557f83ba2 # 替换为实际的 accessKey
  187. secret-key: sk2ff1c6b15b74b888 # 替换为实际的 secretKey
  188. openIM:
  189. secret: openIM123
  190. userID: imAdmin
  191. url: https://localhost/api
  192. #是否为新商户,新商户不走mpOpenId
  193. isNewWxMerchant: true
  194. #是否使用新im
  195. im:
  196. type: NONE