application-druid-kyt.yml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. # 数据源配置
  2. spring:
  3. profiles:
  4. include: common,config-druid-kyt
  5. # redis 配置
  6. redis:
  7. # 地址
  8. # host: 172.17.0.4
  9. # # 端口,默认为6379
  10. # port: 6379
  11. host: sh-crs-bln5ggez.sql.tencentcdb.com
  12. # 端口,默认为6379
  13. port: 26161
  14. # 密码
  15. password: Ylrztek250218!3@.
  16. # 连接超时时间
  17. timeout: 30s
  18. lettuce:
  19. pool:
  20. # 连接池中的最小空闲连接
  21. min-idle: 0
  22. # 连接池中的最大空闲连接
  23. max-idle: 8
  24. # 连接池的最大数据库连接数
  25. max-active: 100
  26. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  27. max-wait: -1ms
  28. database: 0
  29. datasource:
  30. mysql:
  31. type: com.alibaba.druid.pool.DruidDataSource
  32. driverClassName: com.mysql.cj.jdbc.Driver
  33. druid:
  34. # 主库数据源
  35. master:
  36. # url: jdbc:mysql://172.17.0.3:3306/fs_his?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  37. url: jdbc:mysql://sh-cdb-qyfybkwy.sql.tencentcdb.com:24529/fs_his?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  38. username: root
  39. password: Ylrztek250218!3@.
  40. # 从库数据源
  41. slave:
  42. # 从数据源开关/默认关闭
  43. enabled: false
  44. url:
  45. username:
  46. password:
  47. # 初始连接数
  48. initialSize: 5
  49. # 最小连接池数量
  50. minIdle: 10
  51. # 最大连接池数量
  52. maxActive: 200
  53. # 配置获取连接等待超时的时间
  54. maxWait: 60000
  55. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  56. timeBetweenEvictionRunsMillis: 60000
  57. # 配置一个连接在池中最小生存的时间,单位是毫秒
  58. minEvictableIdleTimeMillis: 300000
  59. # 配置一个连接在池中最大生存的时间,单位是毫秒
  60. maxEvictableIdleTimeMillis: 900000
  61. # 配置检测连接是否有效
  62. validationQuery: SELECT 1 FROM DUAL
  63. testWhileIdle: true
  64. testOnBorrow: false
  65. testOnReturn: false
  66. webStatFilter:
  67. enabled: true
  68. statViewServlet:
  69. enabled: false
  70. # 设置白名单,不填则允许所有访问
  71. allow:
  72. url-pattern: /druid/*
  73. # 控制台管理用户名和密码
  74. login-username: fs
  75. login-password: 123456
  76. filter:
  77. stat:
  78. enabled: true
  79. # 慢SQL记录
  80. log-slow-sql: true
  81. slow-sql-millis: 1000
  82. merge-sql: true
  83. wall:
  84. config:
  85. multi-statement-allow: true
  86. sop:
  87. type: com.alibaba.druid.pool.DruidDataSource
  88. driverClassName: com.mysql.cj.jdbc.Driver
  89. druid:
  90. # 主库数据源
  91. master:
  92. # url: jdbc:mysql://172.17.0.3:3306/sop?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  93. url: jdbc:mysql://sh-cdb-qyfybkwy.sql.tencentcdb.com:24529/sop?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  94. username: root
  95. password: Ylrztek250218!3@.
  96. # 初始连接数
  97. initialSize: 5
  98. # 最小连接池数量
  99. minIdle: 10
  100. # 最大连接池数量
  101. maxActive: 200
  102. # 配置获取连接等待超时的时间
  103. maxWait: 60000
  104. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  105. timeBetweenEvictionRunsMillis: 60000
  106. # 配置一个连接在池中最小生存的时间,单位是毫秒
  107. minEvictableIdleTimeMillis: 300000
  108. # 配置一个连接在池中最大生存的时间,单位是毫秒
  109. maxEvictableIdleTimeMillis: 900000
  110. # 配置检测连接是否有效
  111. validationQuery: SELECT 1 FROM DUAL
  112. testWhileIdle: true
  113. testOnBorrow: false
  114. testOnReturn: false
  115. webStatFilter:
  116. enabled: true
  117. statViewServlet:
  118. enabled: false
  119. # 设置白名单,不填则允许所有访问
  120. allow:
  121. url-pattern: /druid/*
  122. # 控制台管理用户名和密码
  123. login-username: fs
  124. login-password: 123456
  125. filter:
  126. stat:
  127. enabled: true
  128. # 慢SQL记录
  129. log-slow-sql: true
  130. slow-sql-millis: 1000
  131. merge-sql: true
  132. wall:
  133. config:
  134. multi-statement-allow: true
  135. rocketmq:
  136. name-server: rmq-1243b25nj.rocketmq.gz.public.tencenttdmq.com:8080 # RocketMQ NameServer 地址
  137. producer:
  138. group: my-producer-group
  139. access-key: ak1243b25nj17d4b2dc1a03 # 替换为实际的 accessKey
  140. secret-key: sk08a7ea1f9f4b0237 # 替换为实际的 secretKey
  141. consumer:
  142. group: test-group
  143. access-key: ak1243b25nj17d4b2dc1a03 # 替换为实际的 accessKey
  144. secret-key: sk08a7ea1f9f4b0237 # 替换为实际的 secretKey
  145. openIM:
  146. secret: op
  147. userID: im
  148. #是否为新商户,新商户不走mpOpenId
  149. isNewWxMerchant: true
  150. enableRedPackAccount: 1