spring: datasource: url: jdbc:mysql://xxx?useUnicode=true&characterEncoding=utf8&autoReconnect=true&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull driver-class-name: com.mysql.jdbc.Driver username: xx password: xxx initial-size: 1 min-idle: 1 max-active: 20 test-on-borrow: true max-wait: 6000 time-between-eviction-runs-millis: 300000 min-evictable-idle-time-millis: 1800000 validation-query: SELECT 1 FROM DUAL test-While-Idle: true test-on-return: false pool-prepared-statements: false max-pool-prepared-statement-per-connection-size: 20 filters: stat,wall,log4j,config #server: # port: 8080 # session-timeout: 30 # tomcat: # max-threads: 0 # uri-encoding: utf-8 mybatis: type-aliases-package: com.mtgg.bean mapper-locations: classpath:mapper/*.xml logging: level: com.mtgg.dao:info