配置文件微调

This commit is contained in:
Dftre 2024-06-07 16:16:23 +08:00
parent 63cf1fee47
commit 2d78703bc3
2 changed files with 19 additions and 18 deletions

View File

@ -1,4 +1,12 @@
spring: spring:
cache:
redis:
# 指定存活时间ms
time-to-live: 86400000
# 指定前缀
use-key-prefix: true
# 是否缓存空值,可以防止缓存穿透
cache-null-values: true
data: data:
# redis 配置 # redis 配置
redis: redis:

View File

@ -50,13 +50,6 @@ spring:
cache: cache:
# 指定缓存类型 jcache 本地缓存 redis 缓存 # 指定缓存类型 jcache 本地缓存 redis 缓存
type: redis type: redis
redis:
# 指定存活时间ms
time-to-live: 86400000
# 指定前缀
use-key-prefix: true
# 是否缓存空值,可以防止缓存穿透
cache-null-values: true
mvc: mvc:
pathmatch: pathmatch:
matching-strategy: ANT_PATH_MATCHER matching-strategy: ANT_PATH_MATCHER
@ -68,11 +61,11 @@ spring:
active: druid,mybatis,oauth,pay,middleware active: druid,mybatis,oauth,pay,middleware
# 文件上传 # 文件上传
servlet: servlet:
multipart: multipart:
# 单个文件大小 # 单个文件大小
max-file-size: 10MB max-file-size: 10MB
# 设置总上传的文件大小 # 设置总上传的文件大小
max-request-size: 20MB max-request-size: 20MB
# 服务模块 # 服务模块
devtools: devtools:
restart: restart:
@ -81,12 +74,12 @@ spring:
# token配置 # token配置
token: token:
# 令牌自定义标识 # 令牌自定义标识
header: Authorization header: Authorization
# 令牌密钥 # 令牌密钥
secret: abcdefghijklmnopqrstuvwxyz secret: abcdefghijklmnopqrstuvwxyz
# 令牌有效期默认30分钟 # 令牌有效期默认30分钟
expireTime: 30 expireTime: 30
# Swagger配置 # Swagger配置
swagger: swagger: