feat: 添加用户错误日志功能, 禁用Redis缓存, userId自动生成5位随机字符
This commit is contained in:
@@ -125,7 +125,29 @@ springdoc.swagger-ui.filter=true
|
||||
springdoc.swagger-ui.display-request-duration=true
|
||||
springdoc.swagger-ui.doc-expansion=none
|
||||
|
||||
|
||||
# ============================================
|
||||
# 腾讯云 Redis 配置(生产环境)
|
||||
# ============================================
|
||||
# 腾讯云 Redis 内网地址(在云数据库 Redis 控制台查看)
|
||||
spring.data.redis.host=crs-xxxxxxxx.sql.tencentcdb.com
|
||||
spring.data.redis.port=6379
|
||||
# Redis 密码(格式可能是:账号:密码 或 仅密码,取决于是否开启免密)
|
||||
spring.data.redis.password=你的Redis密码
|
||||
|
||||
spring.data.redis.database=0
|
||||
|
||||
# 连接池配置
|
||||
spring.data.redis.lettuce.pool.max-active=16
|
||||
spring.data.redis.lettuce.pool.max-idle=8
|
||||
spring.data.redis.lettuce.pool.min-idle=2
|
||||
spring.data.redis.lettuce.pool.max-wait=3000ms
|
||||
|
||||
# 连接超时
|
||||
spring.data.redis.timeout=5000ms
|
||||
spring.data.redis.connect-timeout=5000ms
|
||||
|
||||
# Token过期时间(秒)
|
||||
redis.token.expire-seconds=86400
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user