application-dev.yml 5.9 KB

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