123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- #内置Tomcat容器配置
- server:
- port: #8080
- servlet:
- #应用路径,配置应用路径,可方便进行反向代理
- context-path:
- spring:
- profiles:
- #active: dev
- active: prod
- mvc:
- throw-exception-if-no-handler-found: true
- # aop
- #aop:
- #auto: true
- #proxy-target-class: true
- application:
- name: imageSynthesis
- jackson:
- date-format: yyyy-MM-dd HH:mm:ss
- time-zone: GMT+8
- # 文件大小限制
- servlet:
- multipart:
- max-file-size: 10MB
- max-request-size: 100MB
- # redis token信息
- redis:
- key:
- prefix:
- userToken: "user:token:"
- passwordError: "user:password:error:"
- permissionRefresh: "user:token:permissionRefresh:"
- expire:
- userToken: 604800 # 7天 7*24*3600
- passwordError: 3600 # 一个小时
- permissionRefresh: 604800 # 7天 7*24*3600
- allowMultipleLogin: true # 允许多处登陆
- #mybatis-plus
- mybatis-plus:
- global-config:
- db-config:
- #主键策略
- #id-type: auto
- field-strategy: not_empty
- #驼峰下划线转换
- column-underline: true
- #逻辑删除配置
- #logic-delete-value: 0
- #logic-not-delete-value: 1
- db-type: mysql
- #声明全局默认类名的对应的表的前缀
- #table-prefix: t_
- #设置统一的主键生成策略
- refresh: false
- configuration:
- #map-underscore-to-camel-case: true
- #cache-enabled: false
- #打印出sql语句
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
- #日志
- logging:
- config: classpath:logback-spring.xml
- #使用代码生成模块时 指定要生成的表存在于哪种数据库,可选值有【mysql、oracle、sqlServer】
- project:
- database: mysql
|