application-druid-fzbt.yml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. # 数据源配置
  2. spring:
  3. profiles:
  4. include: config-fzbt,common
  5. # redis 配置
  6. redis:
  7. host: 172.27.0.17
  8. port: 6379
  9. # 数据库索引
  10. database: 0
  11. # 密码
  12. password: zGn7Vrto9ZthdLnn
  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. mysql:
  27. type: com.alibaba.druid.pool.DruidDataSource
  28. driverClassName: com.mysql.cj.jdbc.Driver
  29. druid:
  30. # 主库数据源
  31. master:
  32. url: jdbc:mysql://172.27.0.17:3306/his?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  33. username: root
  34. password: zGn7Vrto9ZthdLnn
  35. # 从库数据源
  36. slave:
  37. # 从数据源开关/默认关闭
  38. enabled: false
  39. url:
  40. username:
  41. password:
  42. # 初始连接数
  43. initialSize: 5
  44. # 最小连接池数量
  45. minIdle: 10
  46. # 最大连接池数量
  47. maxActive: 20
  48. # 配置获取连接等待超时的时间
  49. maxWait: 60000
  50. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  51. timeBetweenEvictionRunsMillis: 60000
  52. # 配置一个连接在池中最小生存的时间,单位是毫秒
  53. minEvictableIdleTimeMillis: 300000
  54. # 配置一个连接在池中最大生存的时间,单位是毫秒
  55. maxEvictableIdleTimeMillis: 900000
  56. # 配置检测连接是否有效
  57. validationQuery: SELECT 1 FROM DUAL
  58. testWhileIdle: true
  59. testOnBorrow: false
  60. testOnReturn: false
  61. webStatFilter:
  62. enabled: true
  63. statViewServlet:
  64. enabled: true
  65. # 设置白名单,不填则允许所有访问
  66. allow:
  67. url-pattern: /druid/*
  68. # 控制台管理用户名和密码
  69. login-username: fs
  70. login-password: 123456
  71. filter:
  72. stat:
  73. enabled: true
  74. # 慢SQL记录
  75. log-slow-sql: true
  76. slow-sql-millis: 1000
  77. merge-sql: true
  78. wall:
  79. config:
  80. multi-statement-allow: true
  81. sop:
  82. type: com.alibaba.druid.pool.DruidDataSource
  83. driverClassName: com.mysql.cj.jdbc.Driver
  84. druid:
  85. # 主库数据源
  86. master:
  87. url: jdbc:mysql://172.27.0.17:3306/sop?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  88. username: root
  89. password: zGn7Vrto9ZthdLnn
  90. read:
  91. url: jdbc:mysql://172.27.0.17:3306/sop?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  92. username: root
  93. password: zGn7Vrto9ZthdLnn
  94. # 初始连接数
  95. initialSize: 5
  96. # 最小连接池数量
  97. minIdle: 10
  98. # 最大连接池数量
  99. maxActive: 20
  100. # 配置获取连接等待超时的时间
  101. maxWait: 60000
  102. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  103. timeBetweenEvictionRunsMillis: 60000
  104. # 配置一个连接在池中最小生存的时间,单位是毫秒
  105. minEvictableIdleTimeMillis: 300000
  106. # 配置一个连接在池中最大生存的时间,单位是毫秒
  107. maxEvictableIdleTimeMillis: 900000
  108. # 配置检测连接是否有效
  109. validationQuery: SELECT 1 FROM DUAL
  110. testWhileIdle: true
  111. testOnBorrow: false
  112. testOnReturn: false
  113. webStatFilter:
  114. enabled: true
  115. statViewServlet:
  116. enabled: true
  117. # 设置白名单,不填则允许所有访问
  118. allow:
  119. url-pattern: /druid/*
  120. # 控制台管理用户名和密码
  121. login-username: fs
  122. login-password: 123456
  123. filter:
  124. stat:
  125. enabled: true
  126. # 慢SQL记录
  127. log-slow-sql: true
  128. slow-sql-millis: 1000
  129. merge-sql: true
  130. wall:
  131. config:
  132. multi-statement-allow: true
  133. shardingsphere:
  134. datasource:
  135. names: ds0
  136. ds0:
  137. # 主库数据源
  138. type: com.alibaba.druid.pool.DruidDataSource
  139. driverClassName: com.mysql.cj.jdbc.Driver
  140. url: jdbc:mysql://172.27.0.17:3306/his?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  141. username: root
  142. password: zGn7Vrto9ZthdLnn
  143. # 初始连接数
  144. initialSize: 5
  145. # 最小连接池数量
  146. minIdle: 10
  147. # 最大连接池数量
  148. maxActive: 20
  149. # 配置获取连接等待超时的时间
  150. maxWait: 60000
  151. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  152. timeBetweenEvictionRunsMillis: 60000
  153. # 配置一个连接在池中最小生存的时间,单位是毫秒
  154. minEvictableIdleTimeMillis: 300000
  155. # 配置一个连接在池中最大生存的时间,单位是毫秒
  156. maxEvictableIdleTimeMillis: 900000
  157. # 配置检测连接是否有效
  158. validationQuery: SELECT 1 FROM DUAL
  159. testWhileIdle: true
  160. testOnBorrow: false
  161. testOnReturn: false
  162. webStatFilter:
  163. enabled: true
  164. statViewServlet:
  165. enabled: true
  166. # 设置白名单,不填则允许所有访问
  167. allow:
  168. url-pattern: /druid/*
  169. # 控制台管理用户名和密码
  170. login-username: fs
  171. login-password: 123456
  172. filter:
  173. stat:
  174. enabled: true
  175. # 慢SQL记录
  176. log-slow-sql: true
  177. slow-sql-millis: 1000
  178. merge-sql: true
  179. wall:
  180. config:
  181. multi-statement-allow: true
  182. rules:
  183. sharding:
  184. tables:
  185. qw_msg:
  186. actual-data-nodes: ds0.qw_msg_$->{0..9}
  187. table-strategy:
  188. standard:
  189. sharding-column: session_id
  190. sharding-algorithm-name: msg-inline
  191. fs_user_operation_log:
  192. actual-data-nodes: ds0.fs_user_operation_log_$->{0..9}
  193. table-strategy:
  194. standard:
  195. sharding-column: user_id
  196. sharding-algorithm-name: oper-inline
  197. sharding-algorithms:
  198. msg-inline:
  199. type: INLINE
  200. props:
  201. algorithm-expression: qw_msg_$->{session_id % 10}
  202. oper-inline:
  203. type: INLINE
  204. props:
  205. algorithm-expression: fs_user_operation_log_$->{user_id % 10}
  206. rocketmq:
  207. name-server: rmq-16xj8o92zp.rocketmq.cd.qcloud.tencenttdmq.com:8080
  208. producer:
  209. group: my-producer-group
  210. access-key: ak16xj8o92zp984557f83ba2 # 替换为实际的 accessKey
  211. secret-key: sk2ff1c6b15b74b888 # 替换为实际的 secretKey
  212. consumer:
  213. group: common-group
  214. access-key: ak16xj8o92zp984557f83ba2 # 替换为实际的 accessKey
  215. secret-key: sk2ff1c6b15b74b888 # 替换为实际的 secretKey
  216. openIM:
  217. secret: openIM123
  218. userID: imAdmin
  219. url: https://im.muyi88.com/api
  220. #是否使用新im
  221. im:
  222. type: OPENIM
  223. #是否为新商户,新商户不走mpOpenId
  224. isNewWxMerchant: true