application-druid.yml 1.0 KB

123456789101112131415161718192021222324252627
  1. spring:
  2. datasource:
  3. type: com.alibaba.druid.pool.DruidDataSource
  4. druid:
  5. master: {url: 'jdbc:mysql://localhost:3306/dataCenter?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8',
  6. username: root, password: 123456, driverClassName: com.mysql.cj.jdbc.Driver}
  7. initialSize: 5
  8. minIdle: 10
  9. maxActive: 20
  10. maxWait: 60000
  11. connectTimeout: 30000
  12. socketTimeout: 60000
  13. timeBetweenEvictionRunsMillis: 60000
  14. minEvictableIdleTimeMillis: 300000
  15. maxEvictableIdleTimeMillis: 900000
  16. validationQuery: SELECT 1 FROM DUAL
  17. testWhileIdle: true
  18. testOnBorrow: false
  19. testOnReturn: false
  20. webStatFilter: {enabled: true}
  21. statViewServlet: {enabled: true, allow: null, url-pattern: /druid/*, login-username: ruoyi,
  22. login-password: 123456}
  23. filter:
  24. stat: {enabled: true, log-slow-sql: true, slow-sql-millis: 1000, merge-sql: true}
  25. wall:
  26. config: {multi-statement-allow: true}
  27. key: newValue