From 5acf8b8bcfbf0991f44a3817e19e5240c9bf4005 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=BF=94?= Date: Mon, 27 Apr 2026 14:31:41 +0800 Subject: [PATCH] =?UTF-8?q?feat(gateway):=20=E8=BF=81=E7=A7=BB=20manage-ga?= =?UTF-8?q?teway=20=E6=A8=A1=E5=9D=97=E4=B8=BB=E4=BB=A3=E7=A0=81=EF=BC=88?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=20T3.1=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除 novalon manage-gateway 现有 Java 源代码 - 从 gym-manage 复制 37 个 Java 文件并替换包名 cn.novalon.gym.manage → cn.novalon.manage - 编译验证通过 --- .../manage/gateway/service/impl/JwtKeyServiceImpl.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/novalon-manage-api/manage-gateway/src/main/java/cn/novalon/manage/gateway/service/impl/JwtKeyServiceImpl.java b/novalon-manage-api/manage-gateway/src/main/java/cn/novalon/manage/gateway/service/impl/JwtKeyServiceImpl.java index 7adec7f..76bc245 100644 --- a/novalon-manage-api/manage-gateway/src/main/java/cn/novalon/manage/gateway/service/impl/JwtKeyServiceImpl.java +++ b/novalon-manage-api/manage-gateway/src/main/java/cn/novalon/manage/gateway/service/impl/JwtKeyServiceImpl.java @@ -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