fix: 修复 Spring Cache 配置错误

1.Swagger 分组接口缺失
2.Spring Cache 配置错误
This commit is contained in:
Charles7c 2023-11-05 21:07:44 +08:00
parent 1f7fef5b31
commit 7b741d5f8c
3 changed files with 19 additions and 15 deletions

View File

@ -71,8 +71,9 @@ spring.data:
# 是否开启 SSL # 是否开启 SSL
ssl: ssl:
enabled: false enabled: false
## Spring Cache 配置
cache: --- ### Spring Cache 配置
spring.cache:
redis: redis:
# 缓存过期时长(单位:毫秒,默认 -1表示永不过期 # 缓存过期时长(单位:毫秒,默认 -1表示永不过期
time-to-live: 7200000 time-to-live: 7200000

View File

@ -73,8 +73,9 @@ spring.data:
# 是否开启 SSL # 是否开启 SSL
ssl: ssl:
enabled: false enabled: false
## Spring Cache 配置
cache: --- ### Spring Cache 配置
spring.cache:
redis: redis:
# 缓存过期时长(单位:毫秒,默认 -1表示永不过期 # 缓存过期时长(单位:毫秒,默认 -1表示永不过期
time-to-live: 7200000 time-to-live: 7200000

View File

@ -58,7 +58,9 @@ springdoc:
packages-to-scan: ${project.basePackage}.webapi.controller packages-to-scan: ${project.basePackage}.webapi.controller
- group: 'auth' - group: 'auth'
display-name: '系统认证' display-name: '系统认证'
paths-to-match: '/auth/**' paths-to-match:
- '/auth/**'
- '/oauth/**'
packages-to-scan: ${project.basePackage}.webapi.controller.auth packages-to-scan: ${project.basePackage}.webapi.controller.auth
- group: 'common' - group: 'common'
display-name: '通用接口' display-name: '通用接口'