# 项目信息配置
|
project:
|
name: 豆米官网
|
version: 1.0.0
|
# 环境,生产环境production,开发环境development
|
env: development
|
# 模式,testing测试模式
|
mode: testing
|
|
spring:
|
profiles:
|
active: pro
|
# JSON返回配置
|
jackson:
|
# 默认时区
|
time-zone: GMT+8
|
# 默认日期格式化
|
date-format: yyyy-MM-dd HH:mm:ss
|
# Quartz配置
|
quartz:
|
# 是否自动启动
|
auto-startup: true
|
# 调度器名称
|
scheduler-name: EvaScheduler
|
servlet:
|
multipart:
|
max-file-size: 50MB
|
max-request-size: 50MB
|
freemarker:
|
cache: false #关闭模板缓存,方便测试
|
settings:
|
template_update_delay: 0 #检查模板更新延迟时间,设置为0表示立即检查,如果时间大于0会有缓存不方便进行模板测试
|
suffix: .html #指定Freemarker模板文件的后缀名
|
# template-loader-path: classpath:/templates #指定模板文件所在的路径
|
template-loader-path: file:D:/static/templates #指定模板文件所在的路径
|
|
# MyBatis配置
|
mybatis-plus:
|
mapper-locations: classpath*:/mappers/**/*.xml
|
configuration:
|
map-underscore-to-camel-case: true
|
log-impl: com.doumee.config.mybatis.DmStdOutImpl
|
# log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
|
# log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
|
|
|
# 缓存内容设置
|
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.*
|
|
# 安全配置
|
security:
|
aes:
|
key: qklpNODl6JjmgcT+
|
iv: 7rnE4rm3h/hcfqN2
|
|
|
# 日志配置
|
logback:
|
level: ERROR
|
appender: ${project.env}
|
# dao层的日志设置为debug,方便查看sql
|
logging:
|
level:
|
# JOB相关
|
com.doumee.dao.system.SystemJobMapper: ERROR
|
com.doumee.dao.system.SystemJobListMapper: ERROR
|
com.doumee.dao.system.SystemJobSnippetMapper: ERROR
|
com.doumee.dao.system.SystemJobLogMapper: ERROR
|
com.doumee.dao.business: ERROR
|
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
|