application-dev.yml 5.9 KB

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