feat: 添加用户错误日志功能, 禁用Redis缓存, userId自动生成5位随机字符

This commit is contained in:
AIGC Developer
2025-12-11 13:32:24 +08:00
parent 3c37006ebd
commit 0933031b59
58 changed files with 4932 additions and 1144 deletions

View File

@@ -39,6 +39,25 @@ app.video.output.path=outputs
jwt.secret=aigc-demo-secret-key-for-jwt-token-generation-2025
jwt.expiration=86400000
# ============================================
# Redis配置
# ============================================
# 是否启用Redis缓存设置为false则禁用RedisToken验证仅依赖JWT
redis.enabled=false
spring.data.redis.host=localhost
spring.data.redis.port=6379
spring.data.redis.password=
spring.data.redis.database=0
# 连接池配置
spring.data.redis.lettuce.pool.max-active=8
spring.data.redis.lettuce.pool.max-idle=8
spring.data.redis.lettuce.pool.min-idle=0
spring.data.redis.lettuce.pool.max-wait=-1ms
# Token在Redis中的过期时间与JWT过期时间一致
redis.token.expire-seconds=86400
# 禁用Redis自动配置当redis.enabled=false时生效
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration,org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration
# AI API配置
ai.api.base-url=http://116.62.4.26:8081
ai.api.key=ak_5f13ec469e6047d5b8155c3cc91350e2