diff --git a/kernel-d-auth/auth-sdk/src/main/java/cn/stylefeng/roses/kernel/auth/auth/AuthServiceImpl.java b/kernel-d-auth/auth-sdk/src/main/java/cn/stylefeng/roses/kernel/auth/auth/AuthServiceImpl.java index fdacfd704..9fada5f1d 100644 --- a/kernel-d-auth/auth-sdk/src/main/java/cn/stylefeng/roses/kernel/auth/auth/AuthServiceImpl.java +++ b/kernel-d-auth/auth-sdk/src/main/java/cn/stylefeng/roses/kernel/auth/auth/AuthServiceImpl.java @@ -97,7 +97,7 @@ public class AuthServiceImpl implements AuthServiceApi { // 其他情况为返回jwt解析错误 throw new AuthException(TOKEN_PARSE_ERROR); } - } catch (Exception jwtSelfException) { + } catch (io.jsonwebtoken.JwtException jwtSelfException) { // 其他jwt解析错误 throw new AuthException(TOKEN_PARSE_ERROR); }