fix: 未登录请求返回 401 业务码而非空响应

This commit is contained in:
2026-10-30 18:39:27 +08:00
parent f45e7e7e78
commit 19b7f409a6
@@ -23,8 +23,8 @@ public class JwtAuthenticationEntryPoint implements AuthenticationEntryPoint {
@Override @Override
public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException e) public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException e)
throws IOException, ServletException { throws IOException, ServletException {
// CommonUtil.responseError(response, Constants.UNAUTHENTICATED_CODE, Constants.UNAUTHENTICATED_MSG, CommonUtil.responseError(response, Constants.UNAUTHENTICATED_CODE, Constants.UNAUTHENTICATED_MSG,
// e.getMessage()); e.getMessage());
} }
} }