application-druid-sft.yml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. # 数据源配置
  2. spring:
  3. profiles:
  4. include: config-druid-sft,common
  5. # redis 配置
  6. redis:
  7. host: 172.30.0.13
  8. port: 6379
  9. # 数据库索引
  10. database: 0
  11. # 密码
  12. password: Sft13245600*
  13. # 连接超时时间
  14. timeout: 10s
  15. lettuce:
  16. pool:
  17. # 连接池中的最小空闲连接
  18. min-idle: 0
  19. # 连接池中的最大空闲连接
  20. max-idle: 8
  21. # 连接池的最大数据库连接数
  22. max-active: 80
  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.30.0.15:3306/fs_his?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  33. username: root
  34. password: Sft13245600*
  35. # 从库数据源
  36. slave:
  37. # 从数据源开关/默认关闭
  38. enabled: false
  39. url:
  40. username:
  41. password:
  42. # 初始连接数
  43. initialSize: 5
  44. # 最小连接池数量
  45. minIdle: 10
  46. # 最大连接池数量
  47. maxActive: 2000
  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.30.0.15:3306/fs_his_sop?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  88. username: root
  89. password: Sft13245600*
  90. read:
  91. url: jdbc:mysql://172.30.0.15:3306/fs_his_sop?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  92. username: root
  93. password: Sft13245600*
  94. # 初始连接数
  95. initialSize: 5
  96. # 最小连接池数量
  97. minIdle: 10
  98. # 最大连接池数量
  99. maxActive: 200
  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. rocketmq:
  134. name-server: rmq-1243b25nj.rocketmq.gz.public.tencenttdmq.com:8080 # RocketMQ NameServer 地址
  135. producer:
  136. group: my-producer-group
  137. access-key: ak1243b25nj17d4b2dc1a03 # 替换为实际的 accessKey
  138. secret-key: sk08a7ea1f9f4b0237 # 替换为实际的 secretKey
  139. consumer:
  140. group: voice-group
  141. access-key: ak1243b25nj17d4b2dc1a03 # 替换为实际的 accessKey
  142. secret-key: sk08a7ea1f9f4b0237 # 替换为实际的 secretKey
  143. openIM:
  144. secret: openIM123
  145. userID: imAdmin
  146. #是否为新商户,新商户不走mpOpenId
  147. isNewWxMerchant: true
  148. #是否使用新im
  149. im:
  150. type: OPENIM