123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- # 项目配置
- like:
- #upload-directory: /www/uploads/likeadmin-java/ # 上传目录
- # 验证码配置
- captcha:
- # 是否开启验证码
- status: false
- # 验证码有效时长
- expire: 120
- # 验证码缓存键名
- token: "captcha:key:"
- # Swagger配置
- swagger:
- # 是否开启swagger
- enabled: true
- # 请求前缀
- pathMapping: /
- # 框架配置
- spring:
- profiles:
- active: @profiles.active@
- mvc:
- static-path-pattern: /api/static/**
- throw-exception-if-no-handler-found: true
- pathmatch:
- matching-strategy: ant_path_matcher
- # 限制配置
- servlet:
- multipart:
- max-file-size: 100MB # 文件上传大小限制
- max-request-size: 100MB # 文件最大请求限制
- enabled: true
- # Redis配置
- redis:
- lettuce:
- pool:
- max-wait: 30000 # 连接池最大阻塞等待时间(使用负数表示没有限制,默认-1)
- max-active: 100 # 连接池最大连接数(使用负数表示没有限制,默认8)
- max-idle: 20 # 连接池中的最大空闲连接(默认8)
- min-idle: 0 # 连接池中的最小空闲连接(默认0)
- jackson:
- date-format: yyyy-MM-dd HH:mm:ss
- time-zone: GMT+8
- # Mybatis-plus配置
- mybatis-plus:
- mapper-locations: classpath*:/mapper/**Mapper.xml
- typeAliasesPackage: com.sckj.**.mapper
- global-config:
- banner: false
- db-config:
- table-prefix: la_
- update-strategy: not_null
- configuration-properties:
- prefix: la_
- # configuration:
- # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
- # Sa-token配置
- sa-token:
- token-name: token # token的名称
- timeout: 2592000 # token有效期单位s(默认30天,-1代表永不过期)
- activity-timeout: -1 # token临时有效期(指定时间无操作掉线)
- is-concurrent: true # 是否允许同一账号并发登录
- is-share: false # 多人同登账号共用token
- token-style: random-64 # token生成的风格
- is-print: false # 打印版本字符画
- is-log: false # 是否输出操作日志
|