application-druid-xzt.yml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. # 数据源配置
  2. spring:
  3. profiles:
  4. include: config-druid-xzt,common
  5. # redis 配置
  6. redis:
  7. # 地址
  8. host: 10.206.0.12
  9. # host: 127.0.0.1
  10. # 端口,默认为6379
  11. port: 6379
  12. # 数据库索引
  13. database: 0
  14. # 密码
  15. # password: Ylrz_1q2w3e4r5t6y
  16. password: ylrz147..
  17. # password:
  18. # 连接超时时间
  19. timeout: 20s
  20. lettuce:
  21. pool:
  22. # 连接池中的最小空闲连接
  23. min-idle: 0
  24. # 连接池中的最大空闲连接
  25. max-idle: 8
  26. # 连接池的最大数据库连接数
  27. max-active: 8
  28. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  29. max-wait: -1ms
  30. datasource:
  31. mysql:
  32. type: com.alibaba.druid.pool.DruidDataSource
  33. driverClassName: com.mysql.cj.jdbc.Driver
  34. druid:
  35. # 主库数据源
  36. master:
  37. url: jdbc:mysql://10.206.0.14:3306/fs_his?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  38. username: root
  39. password: Ylrz_1q2w3e4r5t6y
  40. # url: jdbc:mysql://nj-cdb-c20xiduz.sql.tencentcdb.com:27803/fs_his?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  41. # username: root
  42. # password: Ylrz_1q2w3e4r5t6y
  43. # 从库数据源
  44. slave:
  45. # 从数据源开关/默认关闭
  46. enabled: false
  47. url:
  48. username:
  49. password:
  50. # 初始连接数
  51. initialSize: 5
  52. # 最小连接池数量
  53. minIdle: 10
  54. # 最大连接池数量
  55. maxActive: 20
  56. # 配置获取连接等待超时的时间
  57. maxWait: 60000
  58. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  59. timeBetweenEvictionRunsMillis: 60000
  60. # 配置一个连接在池中最小生存的时间,单位是毫秒
  61. minEvictableIdleTimeMillis: 300000
  62. # 配置一个连接在池中最大生存的时间,单位是毫秒
  63. maxEvictableIdleTimeMillis: 900000
  64. # 配置检测连接是否有效
  65. validationQuery: SELECT 1 FROM DUAL
  66. testWhileIdle: true
  67. testOnBorrow: false
  68. testOnReturn: false
  69. webStatFilter:
  70. enabled: true
  71. statViewServlet:
  72. enabled: true
  73. # 设置白名单,不填则允许所有访问
  74. allow:
  75. url-pattern: /druid/*
  76. # 控制台管理用户名和密码
  77. login-username: fs
  78. login-password: 123456
  79. filter:
  80. stat:
  81. enabled: true
  82. # 慢SQL记录
  83. log-slow-sql: true
  84. slow-sql-millis: 1000
  85. merge-sql: true
  86. wall:
  87. config:
  88. multi-statement-allow: true
  89. sop:
  90. type: com.alibaba.druid.pool.DruidDataSource
  91. driverClassName: com.mysql.cj.jdbc.Driver
  92. druid:
  93. # 主库数据源
  94. master:
  95. url: jdbc:mysql://10.206.0.14:3306/fs_his_sop?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  96. username: root
  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. openIM:
  148. secret: openIM123
  149. userID: imAdmin
  150. #是否为新商户,新商户不走mpOpenId
  151. isNewWxMerchant: true
  152. #图片模板是否缓存
  153. tuiImgCache: '1'
  154. getTuiImg: 'C:\Tools\ylrm_his_scrm\images\36f5863ffbbbdfc31620ea177c75284c.jpg'
  155. getTuiFont: 'C:\Tools\ylrm_his_scrm\images\simsunb.ttf'