server: port: 8848 tomcat: uri-encoding: UTF-8 logging: config: classpath:log.xml spring: application: name: basic main: allow-bean-definition-overriding: true allow-circular-references: true # 全局配置响应日期格式和时区为东八区,解决日期类型返回前端少八个小时的问题 jackson: time-zone: GMT+8 datasource: username: root password: zxc123... url: jdbc:mysql://as.skyfffire.com:3306/market_warehouse?characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true driver-class-name: com.mysql.cj.jdbc.Driver type: com.alibaba.druid.pool.DruidDataSource druid: initial-size: 20 max-active: 80 min-idle: 20 max-wait: 60000 timeBetweenEvictionRunsMillis: 60000 minEvictableIdleTimeMillis: 1800000 validationQuery: SELECT 1 testWhileIdle: true testOnBorrow: false testOnReturn: false poolPreparedStatements: true # 配置监控统计拦截的filters,去掉后监控界面sql无法统计。‘wall’用于防火墙 filters: stat,wall # redis: # # Redis服务器地址 # host: localhost # # Redis数据库索引(默认为0) # database: 0 # # Redis服务器连接端口 # port: 6379 # # Redis服务器连接密码(默认为空) # password: 123456 # # 连接超时时间 # timeout: 1000ms # lettuce: # pool: # # 连接池最大连接数 # max-active: 8 # # 连接池最大空闲连接数 # max-idle: 8 # # 连接池最小空闲连接数 # min-idle: 0 # # 连接池最大阻塞等待时间,负值表示没有限制 # max-wait: -1ms mybatis-plus: mapper-locations: classpath*:mapper/**/*Mapper.xml type-aliases-package: com.liangjiang.basic.domain global-config: banner: false db-config: id-type: input configuration: # 控制台SQL日志 log-impl: org.apache.ibatis.logging.stdout.StdOutImpl map-underscore-to-camel-case: false