Files
RuoYi/ruoyi-admin/src/main/resources/application.yml

134 lines
3.0 KiB
YAML
Raw Normal View History

2018-07-24 16:16:19 +08:00
# 项目相关配置
2018-07-09 08:44:52 +08:00
ruoyi:
# 名称
2018-07-09 08:44:52 +08:00
name: RuoYi
# 版本
2018-10-03 23:11:09 +08:00
version: 3.0.0
# 版权年份
2018-07-09 08:44:52 +08:00
copyrightYear: 2018
# 文件上传路径
2018-09-18 18:51:13 +08:00
profile: D:/profile/
2018-08-10 14:36:31 +08:00
# 获取ip地址开关
2018-10-07 14:16:47 +08:00
addressEnabled: true
# 开发环境配置
2018-07-09 08:44:52 +08:00
server:
# 服务端口
2018-07-09 08:44:52 +08:00
port: 80
2018-08-08 09:16:59 +08:00
servlet:
# 项目contextPath
context-path: /
2018-07-09 08:44:52 +08:00
tomcat:
2018-08-08 09:16:59 +08:00
# tomcat的URI编码
uri-encoding: UTF-8
# tomcat最大线程数默认为200
max-threads: 800
# Tomcat启动初始化的线程数默认值25
min-spare-threads: 30
# 日志配置
2018-07-09 08:44:52 +08:00
logging:
level:
com.ruoyi: debug
org.springframework: WARN
org.spring.springboot.dao: debug
# 用户配置
2018-07-09 08:44:52 +08:00
user:
password:
# 密码错误{maxRetryCount}次锁定10分钟
2018-07-09 08:44:52 +08:00
maxRetryCount: 5
# Spring配置
2018-07-09 08:44:52 +08:00
spring:
# 模板引擎
2018-07-09 08:44:52 +08:00
thymeleaf:
mode: HTML
encoding: utf-8
2018-08-13 21:40:50 +08:00
# 禁用缓存
2018-07-09 08:44:52 +08:00
cache: false
# 资源信息
2018-07-09 08:44:52 +08:00
messages:
# 国际化资源文件路径
2018-07-09 08:44:52 +08:00
basename: i18n/messages
jackson:
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
profiles:
active: druid
# 文件上传
2018-07-13 11:10:57 +08:00
servlet:
multipart:
max-file-size: 30MB
max-request-size: 30MB
# 服务模块
2018-07-09 08:44:52 +08:00
devtools:
restart:
# 热部署开关
2018-07-12 18:07:04 +08:00
enabled: true
2018-07-09 08:44:52 +08:00
# MyBatis
mybatis:
# 搜索指定包别名
2018-10-07 14:16:47 +08:00
typeAliasesPackage: com.ruoyi
2018-07-09 08:44:52 +08:00
# 配置mapper的扫描找到所有的mapper.xml映射文件
2018-10-18 16:48:05 +08:00
mapperLocations: classpath*:mapper/**/*Mapper.xml
2018-07-09 08:44:52 +08:00
# 加载全局的配置文件
2018-10-07 14:16:47 +08:00
configLocation: classpath:mapper/mybatis-config.xml
# PageHelper分页插件
2018-07-09 08:44:52 +08:00
pagehelper:
helperDialect: mysql
reasonable: true
supportMethodsArguments: true
params: count=countSql
2018-07-09 08:44:52 +08:00
# Shiro
shiro:
user:
# 登录地址
loginUrl: /login
# 权限认证失败地址
unauthorizedUrl: /unauth
# 首页地址
indexUrl: /index
# 验证码开关
2018-08-13 21:40:50 +08:00
captchaEnabled: true
2018-07-09 08:44:52 +08:00
# 验证码类型 math 数组计算 char 字符
captchaType: math
cookie:
# 设置Cookie的域名 默认空,即当前访问的域名
domain:
# 设置cookie的有效访问路径
path: /
# 设置HttpOnly属性
httpOnly: true
# 设置Cookie的过期时间天为单位
maxAge: 30
session:
# Session超时时间默认30分钟
expireTime: 30
# 同步session到数据库的周期默认1分钟
dbSyncPeriod: 1
# 相隔多久检查一次session的有效性默认就是10分钟
validationInterval: 10
2018-08-13 21:40:50 +08:00
# 防止XSS攻击
xss:
# 过滤开关
enabled: true
# 排除链接(多个用逗号分隔)
excludes: /system/notice/*
# 匹配链接
urlPatterns: /system/*,/monitor/*,/tool/*
2018-07-09 08:44:52 +08:00
# 代码生成
gen:
# 作者
author: ruoyi
2018-11-21 23:37:09 +08:00
# 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
packageName: com.ruoyi.system
2018-07-09 08:44:52 +08:00
# 自动去除表前缀默认是true
autoRemovePre: true
# 表前缀(类名不会包含表前缀)
2018-08-07 09:58:17 +08:00
tablePrefix: sys_