application-dev-jnlzjk.yml 10 KB

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