2018-04-23 00:00:29 +08:00
|
|
|
|
# 项目名称、版本、版权年份
|
|
|
|
|
ruoyi:
|
|
|
|
|
name: RuoYi
|
2018-05-20 09:25:01 +08:00
|
|
|
|
version: 1.1.4
|
2018-04-23 00:00:29 +08:00
|
|
|
|
copyrightYear: 2018
|
2018-05-13 15:10:15 +08:00
|
|
|
|
profile: D:/profile/
|
2018-04-23 00:00:29 +08:00
|
|
|
|
|
|
|
|
|
#开发环境配置
|
|
|
|
|
server:
|
|
|
|
|
#端口
|
|
|
|
|
port: 80
|
|
|
|
|
tomcat:
|
|
|
|
|
uri-encoding: utf-8
|
|
|
|
|
#日志配置
|
|
|
|
|
logging:
|
|
|
|
|
level:
|
|
|
|
|
com.ruoyi: debug
|
|
|
|
|
org.springframework: WARN
|
|
|
|
|
org.spring.springboot.dao: debug
|
|
|
|
|
#用户配置
|
|
|
|
|
user:
|
|
|
|
|
password:
|
|
|
|
|
#密码错误{maxRetryCount}次锁定10分钟
|
|
|
|
|
maxRetryCount: 5
|
|
|
|
|
#Spring配置
|
|
|
|
|
spring:
|
|
|
|
|
thymeleaf:
|
|
|
|
|
mode: LEGACYHTML5
|
|
|
|
|
cache: false
|
|
|
|
|
messages:
|
|
|
|
|
#国际化资源文件路径
|
|
|
|
|
basename: i18n/messages
|
|
|
|
|
jackson:
|
|
|
|
|
time-zone: GMT+8
|
|
|
|
|
date-format: yyyy-MM-dd HH:mm:ss
|
|
|
|
|
profiles:
|
|
|
|
|
active: druid
|
|
|
|
|
http:
|
|
|
|
|
multipart:
|
|
|
|
|
max-file-size: 30Mb
|
|
|
|
|
max-request-size: 30Mb
|
|
|
|
|
devtools:
|
|
|
|
|
restart:
|
|
|
|
|
enabled: true
|
|
|
|
|
# MyBatis
|
|
|
|
|
mybatis:
|
|
|
|
|
# 搜索指定包别名
|
|
|
|
|
typeAliasesPackage: com.ruoyi.project
|
|
|
|
|
# 配置mapper的扫描,找到所有的mapper.xml映射文件
|
|
|
|
|
mapperLocations: classpath:mybatis/**/*Mapper.xml
|
|
|
|
|
# 加载全局的配置文件
|
|
|
|
|
configLocation: classpath:mybatis/mybatis-config.xml
|
|
|
|
|
# PageHelper
|
|
|
|
|
pagehelper:
|
|
|
|
|
helperDialect: mysql
|
|
|
|
|
reasonable: true
|
|
|
|
|
supportMethodsArguments: true
|
|
|
|
|
params: count=countSql
|
|
|
|
|
# Shiro
|
|
|
|
|
shiro:
|
|
|
|
|
user:
|
|
|
|
|
# 登录地址
|
|
|
|
|
loginUrl: /login
|
|
|
|
|
# 权限认证失败地址
|
|
|
|
|
unauthorizedUrl: /unauth
|
|
|
|
|
# 首页地址
|
|
|
|
|
indexUrl: /index
|
2018-05-13 15:10:15 +08:00
|
|
|
|
# 验证码开关
|
2018-05-18 23:20:19 +08:00
|
|
|
|
captchaEbabled: false
|
2018-05-13 15:10:15 +08:00
|
|
|
|
# 验证码类型 math 数组计算 char 字符
|
|
|
|
|
captchaType: math
|
|
|
|
|
cookie:
|
|
|
|
|
# 设置Cookie的域名 默认空,即当前访问的域名
|
|
|
|
|
domain:
|
|
|
|
|
# 设置cookie的有效访问路径
|
|
|
|
|
path: /
|
|
|
|
|
# 设置HttpOnly属性
|
|
|
|
|
httpOnly: true
|
|
|
|
|
# 设置Cookie的过期时间,天为单位
|
|
|
|
|
maxAge: 30
|
2018-04-23 00:00:29 +08:00
|
|
|
|
session:
|
|
|
|
|
# Session超时时间(默认30分钟)
|
|
|
|
|
expireTime: 30
|
|
|
|
|
# 同步session到数据库的周期(默认1分钟)
|
|
|
|
|
dbSyncPeriod: 1
|
|
|
|
|
# 相隔多久检查一次session的有效性,默认就是10分钟
|
|
|
|
|
validationInterval: 10
|
|
|
|
|
# 代码生成
|
|
|
|
|
gen:
|
|
|
|
|
# 作者
|
|
|
|
|
author: ruoyi
|
|
|
|
|
# 默认生成包路径 module 需改成自己的模块名称 如 system monitor tool
|
|
|
|
|
packageName: com.ruoyi.project.module
|
|
|
|
|
# 自动去除表前缀,默认是true
|
|
|
|
|
autoRemovePre: true
|
|
|
|
|
# 表前缀(类名不会包含表前缀)
|
|
|
|
|
tablePrefix: sys_
|