application-druid-hst.yml 7.5 KB

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