application-prod.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # log config
  2. logging:
  3. config: classpath:log4j2.xml
  4. level:
  5. io.swagger.models.parameters.AbstractSerializableParameter: error
  6. spring:
  7. datasource:
  8. type: com.alibaba.druid.pool.DruidDataSource
  9. druid:
  10. driver-class-name: com.mysql.cj.jdbc.Driver
  11. url: jdbc:mysql://?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
  12. username:
  13. password:
  14. initial-size: 10
  15. max-active: 100
  16. min-idle: 10
  17. max-wait: 600000
  18. pool-prepared-statements: true
  19. max-pool-prepared-statement-per-connection-size: 20
  20. time-between-eviction-runs-millis: 60000
  21. min-evictable-idle-time-millis: 300000
  22. #Oracle需要打开注释
  23. #validation-query: SELECT 1 FROM DUAL
  24. test-while-idle: true
  25. test-on-borrow: false
  26. test-on-return: false
  27. stat-view-servlet:
  28. enabled: true
  29. url-pattern: /druid/*
  30. #login-username: admin
  31. #login-password: admin
  32. filter:
  33. stat:
  34. log-slow-sql: true
  35. slow-sql-millis: 1000
  36. merge-sql: false
  37. wall:
  38. config:
  39. multi-statement-allow: true
  40. redis:
  41. host:
  42. port: 6379
  43. database: 6
  44. timeout: 30000
  45. password: # 密码(默认为空)
  46. maxTotal: 500
  47. maxIdle: 5
  48. maxWaitMillis: 100000