# Web容器配置 server: tomcat: accept-count: 1000 max-connections: 10000 max-threads: 1000 min-spare-threads: 50 uri-encoding: UTF-8 max-http-post-size: 100MB accesslog: enabled: true port: 8025 connection-timeout: 60000 servlet: context-path: /jav compression: enabled: true http2: enabled: true spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver 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 username: root password: fa7777a9337be09f type: com.zaxxer.hikari.HikariDataSource # Hikari 连接池配置 hikari: # 最小空闲连接数量 minimum-idle: 10 # 空闲连接存活最大时间,默认600000(10分钟) idle-timeout: 60000 # 连接池最大连接数,默认是10 maximum-pool-size: 100 # 此属性控制从池返回的连接的默认自动提交行为,默认值:true auto-commit: true # 连接池名称 pool-name: HikariCP # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认1800000即30分钟 max-lifetime: 120000 # 数据库连接超时时间,默认30秒,即30000 connection-timeout: 60000 # 生效超时 validation-timeout: 3000 connection-test-query: SELECT 1 # 日志配置 logging: config: classpath:env/test/log4j2-spring.xml schedule: enable: true