|
@@ -5,11 +5,11 @@ fs:
|
|
|
# 版本
|
|
|
version: 1.1.0
|
|
|
# 版权年份
|
|
|
- copyrightYear: 2020
|
|
|
+ copyrightYear: 2021
|
|
|
# 实例演示开关
|
|
|
- demoEnabled: false
|
|
|
+ demoEnabled: true
|
|
|
# 文件路径 示例( Windows配置D:/fs/uploadPath,Linux配置 /home/fs/uploadPath)
|
|
|
- profile: C:/fs/uploadPath
|
|
|
+ profile: c:/fs/uploadPath
|
|
|
# 获取ip地址开关
|
|
|
addressEnabled: false
|
|
|
# 验证码类型 math 数组计算 char 字符验证
|
|
@@ -19,12 +19,12 @@ fs:
|
|
|
# 加密秘钥
|
|
|
secret: f4e2e52034348f86b67cde581c0f9eb5
|
|
|
# token有效时长,7天,单位秒
|
|
|
- expire: 604800
|
|
|
+ expire: 31536000
|
|
|
header: AppToken
|
|
|
|
|
|
# 开发环境配置
|
|
|
server:
|
|
|
- # 服务器的HTTP端口,默认为
|
|
|
+ # 服务器的HTTP端口,默认为 7011 store 7111
|
|
|
port: 7015
|
|
|
servlet:
|
|
|
# 应用的访问路径
|
|
@@ -40,32 +40,44 @@ server:
|
|
|
# 日志配置
|
|
|
logging:
|
|
|
level:
|
|
|
- com.fs: debug
|
|
|
+ com.fs: info
|
|
|
org.springframework: warn
|
|
|
- org.springframework.web: info
|
|
|
- cn.binarywang.wx.miniapp: debug
|
|
|
|
|
|
# Spring配置
|
|
|
spring:
|
|
|
+ mvc:
|
|
|
+ async:
|
|
|
+ request-timeout: 30000
|
|
|
# 资源信息
|
|
|
messages:
|
|
|
# 国际化资源文件路径
|
|
|
basename: i18n/messages
|
|
|
profiles:
|
|
|
- active: druid-test
|
|
|
+ active: dev
|
|
|
include: config
|
|
|
# 文件上传
|
|
|
servlet:
|
|
|
multipart:
|
|
|
# 单个文件大小
|
|
|
- max-file-size: 10MB
|
|
|
+ max-file-size: 200MB
|
|
|
# 设置总上传的文件大小
|
|
|
- max-request-size: 20MB
|
|
|
+ max-request-size: 200MB
|
|
|
+# enabled: false
|
|
|
# 服务模块
|
|
|
devtools:
|
|
|
restart:
|
|
|
# 热部署开关
|
|
|
enabled: true
|
|
|
+
|
|
|
+
|
|
|
+# token配置
|
|
|
+token:
|
|
|
+ # 令牌自定义标识
|
|
|
+ header: Authorization
|
|
|
+ # 令牌密钥
|
|
|
+ secret: abcdefghijklmnopqrstuvwxyz
|
|
|
+ # 令牌有效期(默认30分钟)
|
|
|
+ expireTime: 180
|
|
|
mybatis-plus:
|
|
|
# 搜索指定包别名
|
|
|
typeAliasesPackage: com.fs.**.domain,com.fs.**.bo,com.fs.**.vo
|
|
@@ -90,7 +102,6 @@ mybatis-plus:
|
|
|
defaultExecutorType: REUSE
|
|
|
# 允许 JDBC 支持自动生成主键
|
|
|
useGeneratedKeys: true
|
|
|
-
|
|
|
# MyBatis配置
|
|
|
mybatis:
|
|
|
# 搜索指定包别名
|
|
@@ -103,9 +114,10 @@ mybatis:
|
|
|
# PageHelper分页插件
|
|
|
pagehelper:
|
|
|
helperDialect: mysql
|
|
|
- reasonable: false
|
|
|
- supportMethodsArguments: true
|
|
|
+ reasonable: false #超出后不显示
|
|
|
+ supportMethodsArguments: false
|
|
|
params: count=countSql
|
|
|
+
|
|
|
# Swagger配置
|
|
|
swagger:
|
|
|
# 是否开启swagger
|
|
@@ -118,7 +130,6 @@ xss:
|
|
|
# 过滤开关
|
|
|
enabled: true
|
|
|
# 排除链接(多个用逗号分隔)
|
|
|
- excludes: /system/notice/*
|
|
|
+ excludes: /system/notice/*,/system/config/*
|
|
|
# 匹配链接
|
|
|
urlPatterns: /system/*,/monitor/*,/tool/*
|
|
|
-
|