server: port: 8081 ################### druid配置 ################### druid: view: enable: false username: root password: 123456 slowSql: true datasource-sys: url: jdbc:mysql://192.168.1.124:3307/archives_sys?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull username: archives password: archives filters: log4j,wall,mergeStat driver-class-name: com.mysql.jdbc.Driver initialSize: 5 minIdle: 5 maxActive: 20 timeBetweenEvictionRunsMillis: 60000 minEvictableIdleTimeMillis: 30000 validationQuery: SELECT 1 FROM DUAL testWhileIdle: true testOnBorrow: false testOnReturn: false ################### mybatis-plus配置 ################### mybatis-plus: mapper-locations: classpath*:com/gxzc/zen/*/mapper/*/*.xml typeAliasesPackage: com.gxzc.zen.*.mapper global-config: id-type: 0 #0:数据库ID自增 1:用户输入id 2:全局唯一id(IdWorker) 3:全局唯一ID(uuid) db-column-underline: true refresh-mapper: true logic-delete-value: 0 logic-not-delete-value: 1 configuration: map-underscore-to-camel-case: true cache-enabled: true #配置的缓存的全局开关 lazyLoadingEnabled: true #延时加载的开关 multipleResultSetsEnabled: true #开启的话,延时加载一个属性时会加载该对象全部属性,否则按需加载属性 # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #打印sql语句,调试用 ################### spring配置 ################### spring: profiles: active: dev # redis: # host: localhost # port: 6379 # password: http: converters: preferred-json-mapper: fastjson multipart: max-request-size: 100MB #最大请求大小 max-file-size: 100MB #最大文件大小 aop: proxy-target-class: true #false为启用jdk默认动态代理,true为cglib动态代理