application.yml 890 B

1234567891011121314151617181920212223242526272829303132333435
  1. spring:
  2. datasource:
  3. url: jdbc:mysql://xxx?useUnicode=true&characterEncoding=utf8&autoReconnect=true&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull
  4. driver-class-name: com.mysql.jdbc.Driver
  5. username: xx
  6. password: xxx
  7. initial-size: 1
  8. min-idle: 1
  9. max-active: 20
  10. test-on-borrow: true
  11. max-wait: 6000
  12. time-between-eviction-runs-millis: 300000
  13. min-evictable-idle-time-millis: 1800000
  14. validation-query: SELECT 1 FROM DUAL
  15. test-While-Idle: true
  16. test-on-return: false
  17. pool-prepared-statements: false
  18. max-pool-prepared-statement-per-connection-size: 20
  19. filters: stat,wall,log4j,config
  20. #server:
  21. # port: 8080
  22. # session-timeout: 30
  23. # tomcat:
  24. # max-threads: 0
  25. # uri-encoding: utf-8
  26. mybatis:
  27. type-aliases-package: com.mtgg.bean
  28. mapper-locations: classpath:mapper/*.xml
  29. logging:
  30. level:
  31. com.mtgg.dao:info