application-druid-myhk.yml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. # 数据源配置
  2. spring:
  3. # redis 配置
  4. redis:
  5. host: 172.27.0.6
  6. port: 6379
  7. # 数据库索引
  8. database: 0
  9. # 密码
  10. password: myhk888777666.
  11. # 连接超时时间
  12. timeout: 10s
  13. lettuce:
  14. pool:
  15. # 连接池中的最小空闲连接
  16. min-idle: 0
  17. # 连接池中的最大空闲连接
  18. max-idle: 8
  19. # 连接池的最大数据库连接数
  20. max-active: 8
  21. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  22. max-wait: -1ms
  23. datasource:
  24. clickhouse:
  25. type: com.alibaba.druid.pool.DruidDataSource
  26. driverClassName: com.clickhouse.jdbc.ClickHouseDriver
  27. url: jdbc:clickhouse://1.14.104.71:8123/sop_test?compress=0&use_server_time_zone=true&use_client_time_zone=false&timezone=Asia/Shanghai
  28. username: rt_2024
  29. password: Yzx_19860213
  30. initialSize: 10
  31. maxActive: 100
  32. minIdle: 10
  33. maxWait: 6000
  34. mysql:
  35. type: com.alibaba.druid.pool.DruidDataSource
  36. driverClassName: com.mysql.cj.jdbc.Driver
  37. druid:
  38. # 主库数据源
  39. master:
  40. url: jdbc:mysql://172.27.0.17:3306/fs_his?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  41. username: root
  42. password: myhk888777666.
  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://172.27.0.17:3306/fs_his_sop?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  96. username: root
  97. password: myhk888777666.
  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: voice-group
  145. access-key: ak1243b25nj17d4b2dc1a03 # 替换为实际的 accessKey
  146. secret-key: sk08a7ea1f9f4b0237 # 替换为实际的 secretKey