|
@@ -1,119 +0,0 @@
|
|
|
-# Spring配置
|
|
|
-spring:
|
|
|
- # 模板引擎
|
|
|
- thymeleaf:
|
|
|
- mode: HTML
|
|
|
- encoding: utf-8
|
|
|
- # 禁用缓存
|
|
|
- cache: false
|
|
|
- # 资源信息
|
|
|
- messages:
|
|
|
- # 国际化资源文件路径
|
|
|
- basename: static/i18n/messages
|
|
|
- jackson:
|
|
|
- time-zone: GMT+8
|
|
|
- date-format: yyyy-MM-dd HH:mm:ss
|
|
|
- profiles:
|
|
|
- active: test
|
|
|
- # 文件上传
|
|
|
- servlet:
|
|
|
- multipart:
|
|
|
- # 单个文件大小
|
|
|
- max-file-size: 10MB
|
|
|
- # 设置总上传的文件大小
|
|
|
- max-request-size: 20MB
|
|
|
- beaninfo:
|
|
|
- ignore:
|
|
|
- flyway:
|
|
|
- ignore-future-migrations:
|
|
|
-
|
|
|
-# MyBatis
|
|
|
-#mybatis:
|
|
|
-# # 搜索指定包别名
|
|
|
-# typeAliasesPackage: com.ruoyi.**.domain
|
|
|
-# # 配置mapper的扫描,找到所有的mapper.xml映射文件
|
|
|
-# mapperLocations: classpath*:mapper/**/*Mapper.xml
|
|
|
-# # 加载全局的配置文件
|
|
|
-# configLocation: classpath:mybatis/mybatis-config.xml
|
|
|
-
|
|
|
-# Mybatis-plus
|
|
|
-mybatis-plus:
|
|
|
- mapper-locations: classpath*:mapper/**/*Mapper.xml
|
|
|
- type-aliases-package: com.ruoyi.**.domain
|
|
|
- global-config:
|
|
|
- db-config:
|
|
|
- id-type: auto
|
|
|
- field-strategy: 2
|
|
|
- table-prefix: true
|
|
|
- db-type: mysql
|
|
|
- configuration:
|
|
|
- map-underscore-to-camel-case: true
|
|
|
- cache-enabled: false
|
|
|
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
-# PageHelper分页插件
|
|
|
-pagehelper:
|
|
|
- helperDialect: mysql
|
|
|
- supportMethodsArguments: true
|
|
|
- params: count=countSql
|
|
|
-
|
|
|
-# 日志配置
|
|
|
-logging:
|
|
|
- level:
|
|
|
- com.ruoyi: debug
|
|
|
- org.springframework: warn
|
|
|
-
|
|
|
-# 用户配置
|
|
|
-user:
|
|
|
- password:
|
|
|
- # 密码错误{maxRetryCount}次锁定10分钟
|
|
|
- maxRetryCount: 5
|
|
|
-
|
|
|
-# Shiro
|
|
|
-shiro:
|
|
|
- user:
|
|
|
- # 登录地址
|
|
|
- loginUrl: /login
|
|
|
- # 权限认证失败地址
|
|
|
- unauthorizedUrl: /unauth
|
|
|
- # 首页地址
|
|
|
- indexUrl: /index
|
|
|
- # 验证码开关
|
|
|
- captchaEnabled: true
|
|
|
- # 验证码类型 math 数组计算 char 字符
|
|
|
- captchaType: math
|
|
|
- cookie:
|
|
|
- # 设置Cookie的域名 默认空,即当前访问的域名
|
|
|
- domain:
|
|
|
- # 设置cookie的有效访问路径
|
|
|
- path: /
|
|
|
- # 设置HttpOnly属性
|
|
|
- httpOnly: true
|
|
|
- # 设置Cookie的过期时间,天为单位
|
|
|
- maxAge: 30
|
|
|
- # 设置密钥,务必保持唯一性(生成方式,直接拷贝到main运行即可)Base64.encodeToString(CipherUtils.generateNewKey(128, "AES").getEncoded()) (默认启动生成随机秘钥,随机秘钥会导致之前客户端RememberMe Cookie无效,如设置固定秘钥RememberMe Cookie则有效)
|
|
|
- cipherKey:
|
|
|
- session:
|
|
|
- # Session超时时间,-1代表永不过期(默认30分钟)
|
|
|
- expireTime: 30
|
|
|
- # 同步session到数据库的周期(默认1分钟)
|
|
|
- dbSyncPeriod: 1
|
|
|
- # 相隔多久检查一次session的有效性,默认就是10分钟
|
|
|
- validationInterval: 10
|
|
|
- # 同一个用户最大会话数,比如2的意思是同一个账号允许最多同时两个人登录(默认-1不限制)
|
|
|
- maxSession: -1
|
|
|
- # 踢出之前登录的/之后登录的用户,默认踢出之前登录的用户
|
|
|
- kickoutAfter: false
|
|
|
- rememberMe:
|
|
|
- # 是否开启记住我
|
|
|
- enabled: true
|
|
|
-
|
|
|
-# 防止XSS攻击
|
|
|
-xss:
|
|
|
- # 过滤开关
|
|
|
- enabled: true
|
|
|
- # 排除链接(多个用逗号分隔)
|
|
|
- excludes: /system/notice/*
|
|
|
- # 匹配链接
|
|
|
- urlPatterns: /system/*,/monitor/*,/tool/*
|
|
|
-server:
|
|
|
- port: 8080
|