From a1486dae3466ae3c179b73635fd4cc354acabe32 Mon Sep 17 00:00:00 2001 From: JEECG <445654970@qq.com> Date: Tue, 2 Dec 2025 22:44:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=AA=E8=BE=9E=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/org/jeecg/config/security/SecurityConfig.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/security/SecurityConfig.java b/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/security/SecurityConfig.java index 30c1124fd..0d900ed86 100644 --- a/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/security/SecurityConfig.java +++ b/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/security/SecurityConfig.java @@ -110,7 +110,7 @@ public class SecurityConfig { .authenticationEntryPoint((request, response, authException) -> { // 记录详细的异常信息 - 未认证 log.error("接口访问失败(未认证),请求路径:{},错误信息:{}", request.getRequestURI(), authException.getMessage(), authException); - JwtUtil.responseError(response, 401, "Token格式错误或已过期"); + JwtUtil.responseError(response, 401, "Token无效或已过期"); }) .accessDeniedHandler((request, response, accessDeniedException) -> { // 记录详细的异常信息 - token无效或权限不足 @@ -224,7 +224,7 @@ public class SecurityConfig { .authenticationEntryPoint((request, response, authException) -> { // 处理JWT解析失败的情况 log.error("JWT验证失败,请求路径:{},错误信息:{}", request.getRequestURI(), authException.getMessage(), authException); - JwtUtil.responseError(response, 401, "Token格式错误或已过期"); + JwtUtil.responseError(response, 401, "Token无效或已过期"); }) .accessDeniedHandler((request, response, accessDeniedException) -> { // 处理权限不足的情况 @@ -237,7 +237,7 @@ public class SecurityConfig { .authenticationEntryPoint((request, response, authException) -> { // 记录详细的异常信息 - 未认证 log.error("接口访问失败(未认证),请求路径:{},错误信息:{}", request.getRequestURI(), authException.getMessage(), authException); - JwtUtil.responseError(response, 401, "Token格式错误或已过期"); + JwtUtil.responseError(response, 401, "Token无效或已过期"); }) .accessDeniedHandler((request, response, accessDeniedException) -> { // 记录详细的异常信息 - token无效或权限不足