application-druid-fcky.yml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. # 数据源配置
  2. spring:
  3. profiles:
  4. include: config-druid-fcky,common
  5. # redis 配置
  6. redis:
  7. # 地址
  8. host: 10.206.0.14
  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. # clickhouse:
  29. # type: com.alibaba.druid.pool.DruidDataSource
  30. # driverClassName: com.clickhouse.jdbc.ClickHouseDriver
  31. # url: jdbc:clickhouse://cc-2vc8zzo26w0l7m2l6.public.clickhouse.ads.aliyuncs.com/sop?compress=0&use_server_time_zone=true&use_client_time_zone=false&timezone=Asia/Shanghai
  32. # username: rt_2024
  33. # password: Yzx_19860213
  34. # initialSize: 10
  35. # maxActive: 100
  36. # minIdle: 10
  37. # maxWait: 6000
  38. mysql:
  39. type: com.alibaba.druid.pool.DruidDataSource
  40. driverClassName: com.mysql.cj.jdbc.Driver
  41. druid:
  42. # 主库数据源
  43. master:
  44. url: jdbc:mysql://10.206.0.3:3306/fs_his?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  45. username: root
  46. password: Ylrz_1q2w3e4r5t6y
  47. # 从库数据源
  48. slave:
  49. # 从数据源开关/默认关闭
  50. enabled: false
  51. url:
  52. username:
  53. password:
  54. # 初始连接数
  55. initialSize: 5
  56. # 最小连接池数量
  57. minIdle: 10
  58. # 最大连接池数量
  59. maxActive: 20
  60. # 配置获取连接等待超时的时间
  61. maxWait: 60000
  62. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  63. timeBetweenEvictionRunsMillis: 60000
  64. # 配置一个连接在池中最小生存的时间,单位是毫秒
  65. minEvictableIdleTimeMillis: 300000
  66. # 配置一个连接在池中最大生存的时间,单位是毫秒
  67. maxEvictableIdleTimeMillis: 900000
  68. # 配置检测连接是否有效
  69. validationQuery: SELECT 1 FROM DUAL
  70. testWhileIdle: true
  71. testOnBorrow: false
  72. testOnReturn: false
  73. webStatFilter:
  74. enabled: true
  75. statViewServlet:
  76. enabled: true
  77. # 设置白名单,不填则允许所有访问
  78. allow:
  79. url-pattern: /druid/*
  80. # 控制台管理用户名和密码
  81. login-username: fs
  82. login-password: 123456
  83. filter:
  84. stat:
  85. enabled: true
  86. # 慢SQL记录
  87. log-slow-sql: true
  88. slow-sql-millis: 1000
  89. merge-sql: true
  90. wall:
  91. config:
  92. multi-statement-allow: true
  93. sop:
  94. type: com.alibaba.druid.pool.DruidDataSource
  95. driverClassName: com.mysql.cj.jdbc.Driver
  96. druid:
  97. # 主库数据源
  98. master:
  99. url: jdbc:mysql://10.206.0.3:3306/sop?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  100. username: root
  101. password: Ylrz_1q2w3e4r5t6y
  102. # 初始连接数
  103. initialSize: 5
  104. # 最小连接池数量
  105. minIdle: 10
  106. # 最大连接池数量
  107. maxActive: 20
  108. # 配置获取连接等待超时的时间
  109. maxWait: 60000
  110. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  111. timeBetweenEvictionRunsMillis: 60000
  112. # 配置一个连接在池中最小生存的时间,单位是毫秒
  113. minEvictableIdleTimeMillis: 300000
  114. # 配置一个连接在池中最大生存的时间,单位是毫秒
  115. maxEvictableIdleTimeMillis: 900000
  116. # 配置检测连接是否有效
  117. validationQuery: SELECT 1 FROM DUAL
  118. testWhileIdle: true
  119. testOnBorrow: false
  120. testOnReturn: false
  121. webStatFilter:
  122. enabled: true
  123. statViewServlet:
  124. enabled: true
  125. # 设置白名单,不填则允许所有访问
  126. allow:
  127. url-pattern: /druid/*
  128. # 控制台管理用户名和密码
  129. login-username: fs
  130. login-password: 123456
  131. filter:
  132. stat:
  133. enabled: true
  134. # 慢SQL记录
  135. log-slow-sql: true
  136. slow-sql-millis: 1000
  137. merge-sql: true
  138. wall:
  139. config:
  140. multi-statement-allow: true
  141. rocketmq:
  142. name-server: rmq-1243b25nj.rocketmq.gz.public.tencenttdmq.com:8080 # RocketMQ NameServer 地址
  143. producer:
  144. group: my-producer-group
  145. access-key: ak1243b25nj17d4b2dc1a03 # 替换为实际的 accessKey
  146. secret-key: sk08a7ea1f9f4b0237 # 替换为实际的 secretKey
  147. consumer:
  148. group: test-group
  149. access-key: ak1243b25nj17d4b2dc1a03 # 替换为实际的 accessKey
  150. secret-key: sk08a7ea1f9f4b0237 # 替换为实际的 secretKey