#开启健康检查、审计、统计和监控,即可通过访问/actuator/beans等查看状态 management: endpoints: web: exposure: include: beans,health spring: mobile: sitepreference: enabled:true servlet: multipart: enabled: true max-file-size: 100MB # 单个文件上传的最大上限 max-request-size: 100MB # 一次请求总大小上限 ##数据库设置 datasource: username: root password: root url: jdbc:mysql://localhost:3306/depository?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf8 driver-class-name: com.mysql.cj.jdbc.Driver type: com.alibaba.druid.pool.DruidDataSource initialSize: 5 minIdle: 5 maxActive: 10 maxWait: 60000 timeBetweenEvictionRunsMillis: 60000 minEvictableIdleTimeMillis: 300000 validationQuery: SELECT 1 FROM DUAL useGlobalDataSourceStat: true server: port: 9090 testWhileIdle: true testOnReturn: false testOnBorrow: false poolPreparedStatements: true maxPoolPreparedStatementPerConnectionSize: 20 #配置监控统计拦截的filters,去掉后监控界面sql将无法统计,'wall'用于防火墙 filters: stat, wall, log4j connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 #超时回收机制 removeAbandoned: true removeAbandonedTimeout: 1800 logAbandoned: true banner: location: banner.txt thymeleaf: cache: false mode: HTML mvc: hiddenmethod: filter: enabled: true view: prefix: /templates/ suffix: .html static-path-pattern: /static/** redis: port: 6379 host: 127.0.0.1 database: 0 jedis: pool: min-idle: 10 max-idle: 20 max-wait: -1ms max-active: 200 timeout: 2000ms server: mybatis: type-aliases-package: com.dreamchaser.depository_manage.entity configuration: log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl log-prefix: mapper. mybatis-plus: configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl file: uploadPath: D:/upLoad