feat: 更新 JWT 黑名单服务,支持令牌过期时间管理并添加定时清理功能

This commit is contained in:
2025-06-06 08:16:47 +00:00
parent 400a06f5a3
commit 244f0e7667
6 changed files with 45 additions and 11 deletions

View File

@@ -27,4 +27,4 @@ spring.jpa.properties.hibernate.format_sql=true
# 用于签发 JWT 的密钥。请务必修改为一个足够长且复杂的字符串,不要在生产环境中泄露
app.jwt.secret=YourSuperSecretKeyForJWTsWhichIsLongAndSecureAbcdAbcdAbcdAbcdAbcdAbcdAbcdAbcdAbcdAbcd
# JWT 的过期时间(毫秒),这里设置为 1 小时
app.jwt.expiration-ms=3600000
app.jwt.expiration-ms=60000