application-test.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Web容器配置
  2. server:
  3. tomcat:
  4. accept-count: 1000
  5. max-connections: 10000
  6. max-threads: 1000
  7. min-spare-threads: 50
  8. uri-encoding: UTF-8
  9. max-http-post-size: 100MB
  10. accesslog:
  11. enabled: true
  12. port: 8025
  13. connection-timeout: 60000
  14. servlet:
  15. context-path: /jav
  16. compression:
  17. enabled: true
  18. http2:
  19. enabled: true
  20. spring:
  21. datasource:
  22. driver-class-name: com.mysql.cj.jdbc.Driver
  23. url: jdbc:mysql://144.34.207.84:3306/jav?useUnicode=true&allowMultiQueries=true&serverTimezone=Asia/Shanghai&characterEncoding=UTF-8&autoReconnect=true&failOverReadOnly=false&useSSL=false
  24. username: root
  25. password: fa7777a9337be09f
  26. type: com.zaxxer.hikari.HikariDataSource
  27. # Hikari 连接池配置
  28. hikari:
  29. # 最小空闲连接数量
  30. minimum-idle: 10
  31. # 空闲连接存活最大时间,默认600000(10分钟)
  32. idle-timeout: 60000
  33. # 连接池最大连接数,默认是10
  34. maximum-pool-size: 100
  35. # 此属性控制从池返回的连接的默认自动提交行为,默认值:true
  36. auto-commit: true
  37. # 连接池名称
  38. pool-name: HikariCP
  39. # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认1800000即30分钟
  40. max-lifetime: 120000
  41. # 数据库连接超时时间,默认30秒,即30000
  42. connection-timeout: 60000
  43. # 生效超时
  44. validation-timeout: 3000
  45. connection-test-query: SELECT 1
  46. # 日志配置
  47. logging:
  48. config: classpath:env/test/log4j2-spring.xml
  49. schedule:
  50. enable: true