application-dev.yml 6.1 KB

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