chore: 合并 master 分支
This commit is contained in:
@@ -2,11 +2,6 @@ server:
|
||||
port: 8989
|
||||
|
||||
spring:
|
||||
jackson:
|
||||
## 默认序列化时间格式
|
||||
date-format: yyyy-MM-dd HH:mm:ss
|
||||
## 默认序列化时区
|
||||
time-zone: GMT+8
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
@@ -40,6 +35,8 @@ spring:
|
||||
time-to-live: 3600000
|
||||
# 缓存null值,防止缓存穿透
|
||||
cache-null-values: true
|
||||
caffeine:
|
||||
spec: initialCapacity=50,maximumSize=1000,expireAfterWrite=600s
|
||||
# 邮件配置
|
||||
mail:
|
||||
host: smtp.youlai.tech
|
||||
@@ -81,9 +78,9 @@ security:
|
||||
jwt:
|
||||
# JWT 秘钥
|
||||
key: SecretKey012345678901234567890123456789012345678901234567890123456789
|
||||
# 访问令牌 有效期(单位:秒),默认 1 小时
|
||||
# 访问令牌 有效期(单位:秒),默认 1 小时,-1 表示永不过期
|
||||
access-token-time-to-live: 3600
|
||||
# 刷新令牌有效期(单位:秒),默认 7 天
|
||||
# 刷新令牌有效期(单位:秒),默认 7 天,-1 表示永不过期
|
||||
refresh-token-time-to-live: 604800
|
||||
# 无需认证的请求路径
|
||||
redis-token:
|
||||
|
||||
Reference in New Issue
Block a user