chore(config): 清理配置和更新依赖
- 删除未使用的 CacheConfig.java - 更新 pom.xml 依赖版本 - 优化应用配置文件 - 更新前端配置管理页面 - 更新 package-lock.json
This commit is contained in:
+4
@@ -198,6 +198,8 @@ public class JwtKeyServiceImpl implements JwtKeyService {
|
||||
try {
|
||||
String initialKey;
|
||||
|
||||
logger.info("Configured JWT secret: {}", configuredSecret != null ? "present (length: " + configuredSecret.length() + ")" : "null");
|
||||
|
||||
if (configuredSecret != null && !configuredSecret.isEmpty()) {
|
||||
if (configuredSecret.startsWith("enc:")) {
|
||||
initialKey = decryptKey(configuredSecret.substring(4));
|
||||
@@ -216,6 +218,8 @@ public class JwtKeyServiceImpl implements JwtKeyService {
|
||||
logger.info("Generated new secure JWT key");
|
||||
}
|
||||
|
||||
logger.info("JWT key length: {}", initialKey.length());
|
||||
|
||||
SecretKey signingKey = new SecretKeySpec(
|
||||
initialKey.getBytes(StandardCharsets.UTF_8),
|
||||
KEY_ALGORITHM
|
||||
|
||||
@@ -7,6 +7,18 @@ spring:
|
||||
predicates:
|
||||
- Path=/api/**
|
||||
|
||||
jwt:
|
||||
secret: novalon-gym-manage-jwt-secret-key-for-development-only-2026
|
||||
expiration: 86400000
|
||||
|
||||
signature:
|
||||
enabled: false
|
||||
|
||||
resilience:
|
||||
timeout:
|
||||
enabled: true
|
||||
duration: 10s
|
||||
|
||||
logging:
|
||||
level:
|
||||
org.springframework.cloud.gateway: TRACE
|
||||
|
||||
Reference in New Issue
Block a user