application-druid-yjb.yml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. # 数据源配置
  2. spring:
  3. profiles:
  4. include: config-druid-yjb,common
  5. # redis 配置
  6. redis:
  7. # 地址
  8. host: 10.206.0.17
  9. # 端口,默认为6379
  10. port: 6379
  11. # 数据库索引
  12. database: 0
  13. # 密码
  14. password: Ylrz_1q2w3e4r5t6y
  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. mysql:
  29. type: com.alibaba.druid.pool.DruidDataSource
  30. driverClassName: com.mysql.cj.jdbc.Driver
  31. druid:
  32. # 主库数据源
  33. master:
  34. url: jdbc:mysql://10.206.0.9:3306/fs_his?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  35. username: root
  36. password: Ylrz_1q2w3e4r5t6y
  37. # 从库数据源
  38. slave:
  39. # 从数据源开关/默认关闭
  40. enabled: true
  41. url: jdbc:mysql://10.206.0.12:3306/fs_his?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  42. username: yjb
  43. password: Ylrz_1q2w3e4r5t6y
  44. # 初始连接数
  45. initialSize: 5
  46. # 最小连接池数量
  47. minIdle: 10
  48. # 最大连接池数量
  49. maxActive: 20
  50. # 配置获取连接等待超时的时间
  51. maxWait: 60000
  52. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  53. timeBetweenEvictionRunsMillis: 60000
  54. # 配置一个连接在池中最小生存的时间,单位是毫秒
  55. minEvictableIdleTimeMillis: 300000
  56. # 配置一个连接在池中最大生存的时间,单位是毫秒
  57. maxEvictableIdleTimeMillis: 900000
  58. # 配置检测连接是否有效
  59. validationQuery: SELECT 1 FROM DUAL
  60. testWhileIdle: true
  61. testOnBorrow: false
  62. testOnReturn: false
  63. webStatFilter:
  64. enabled: true
  65. statViewServlet:
  66. enabled: true
  67. # 设置白名单,不填则允许所有访问
  68. allow:
  69. url-pattern: /druid/*
  70. # 控制台管理用户名和密码
  71. login-username: fs
  72. login-password: 123456
  73. filter:
  74. stat:
  75. enabled: true
  76. # 慢SQL记录
  77. log-slow-sql: true
  78. slow-sql-millis: 1000
  79. merge-sql: true
  80. wall:
  81. config:
  82. multi-statement-allow: true
  83. sop:
  84. type: com.alibaba.druid.pool.DruidDataSource
  85. driverClassName: com.mysql.cj.jdbc.Driver
  86. druid:
  87. # 主库数据源
  88. master:
  89. url: jdbc:mysql://10.206.0.9:3306/fs_his_sop?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  90. username: root
  91. password: Ylrz_1q2w3e4r5t6y
  92. read:
  93. # 从数据源开关/默认关闭
  94. enabled: true
  95. url: jdbc:mysql://10.206.0.12:3306/fs_his?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  96. username: yjb
  97. password: Ylrz_1q2w3e4r5t6y
  98. # 初始连接数
  99. initialSize: 5
  100. # 最小连接池数量
  101. minIdle: 10
  102. # 最大连接池数量
  103. maxActive: 20
  104. # 配置获取连接等待超时的时间
  105. maxWait: 60000
  106. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  107. timeBetweenEvictionRunsMillis: 60000
  108. # 配置一个连接在池中最小生存的时间,单位是毫秒
  109. minEvictableIdleTimeMillis: 300000
  110. # 配置一个连接在池中最大生存的时间,单位是毫秒
  111. maxEvictableIdleTimeMillis: 900000
  112. # 配置检测连接是否有效
  113. validationQuery: SELECT 1 FROM DUAL
  114. testWhileIdle: true
  115. testOnBorrow: false
  116. testOnReturn: false
  117. webStatFilter:
  118. enabled: true
  119. statViewServlet:
  120. enabled: true
  121. # 设置白名单,不填则允许所有访问
  122. allow:
  123. url-pattern: /druid/*
  124. # 控制台管理用户名和密码
  125. login-username: fs
  126. login-password: 123456
  127. filter:
  128. stat:
  129. enabled: true
  130. # 慢SQL记录
  131. log-slow-sql: true
  132. slow-sql-millis: 1000
  133. merge-sql: true
  134. wall:
  135. config:
  136. multi-statement-allow: true
  137. rocketmq:
  138. name-server: rmq-1243b25nj.rocketmq.gz.public.tencenttdmq.com:8080 # RocketMQ NameServer 地址
  139. producer:
  140. group: my-producer-group
  141. access-key: ak1243b25nj17d4b2dc1a03 # 替换为实际的 accessKey
  142. secret-key: sk08a7ea1f9f4b0237 # 替换为实际的 secretKey
  143. consumer:
  144. group: test-group
  145. access-key: ak1243b25nj17d4b2dc1a03 # 替换为实际的 accessKey
  146. secret-key: sk08a7ea1f9f4b0237 # 替换为实际的 secretKey
  147. # token配置
  148. token:
  149. # 令牌自定义标识
  150. header: Authorization
  151. # 令牌密钥
  152. secret: feeb79c778c1274dd0e4a709cd948718
  153. # 令牌有效期(默认30分钟)
  154. expireTime: 180
  155. #是否为新商户,新商户不走mpOpenId
  156. isNewWxMerchant: false
  157. openIM:
  158. secret: openIM123
  159. userID: imAdmin
  160. url: https://web.im.fbylive.com/api
  161. #是否使用新im
  162. im:
  163. type: NONE