application-druid-jnmy-test.yml 9.7 KB

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