# 项目信息配置
|
project:
|
name: 智能会议室项目
|
version: 1.0.0
|
env: development
|
# env: production
|
|
spring:
|
application:
|
name: meetingAdmin
|
# JSON返回配置
|
jackson:
|
# 默认时区
|
time-zone: GMT+8
|
# 默认日期格式化
|
date-format: yyyy-MM-dd HH:mm:ss
|
servlet:
|
multipart:
|
max-file-size: 200MB
|
max-request-size: 200MB
|
enabled: true
|
main:
|
allow-circular-references: true
|
|
# MyBatis配置
|
mybatis-plus:
|
mapper-locations: classpath*:/mappers/**/*.xml
|
configuration:
|
map-underscore-to-camel-case: true
|
log-impl: com.doumee.config.mybatis.DmStdOutImpl
|
|
|
# 缓存内容设置
|
cache:
|
session:
|
# 会话过期时长(s)
|
expire: 1800
|
captcha:
|
# 验证码过期时长(s)
|
expire: 300
|
|
# 跟踪日志
|
trace:
|
# 开启智能跟踪模式
|
smart: true
|
# 排除跟踪的URL正则
|
exclude-patterns: .+/list[a-zA-Z0-9\-\_]*$, .+/tree[a-zA-Z0-9\-\_]*$, .+/page[a-zA-Z0-9\-\_]*$, .+/all[a-zA-Z0-9\-\_]*$, /swagger-resources.*
|
|
|
# 日志配置
|
logback:
|
level: INFO
|
appender: ${project.env}
|
# dao层的日志设置为debug,方便查看sql
|
logging:
|
level:
|
com.doumee.dao: debug
|
|
|
# WEB服务器配置
|
server:
|
compression:
|
enabled: true
|
mime-types: application/json
|
|
port: 10013
|
tomcat:
|
max-swallow-size: -1
|
servlet:
|
session:
|
timeout: PT3H #表示12小时
|
|
auth:
|
jwt:
|
enabled: true #是否开启JWT登录认证功能
|
secret: fjkfaf;afa # JWT私钥,用于校验JWT令牌的合法性
|
expiration: 1800000 #JWT令牌的有效期,用于校验JWT令牌的合法性
|
# expiration: 300000 #JWT令牌的有效期,用于校验JWT令牌的合法性
|
header: JWTHeaderName #HTTP请求的Header名称,该Header作为参数传递JWT令牌
|
userParamName: username #用户登录认证用户名参数名称
|
pwdParamName: password #用户登录认证密码参数名称
|
useDefaultController: true # 是否使用默认的JwtAuthController
|