application-dev.yml 5.7 KB

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