From df87a6eae73ff11e4bb9832dedfe4f20e4d152e9 Mon Sep 17 00:00:00 2001 From: gol2580 Date: Sun, 4 Feb 2024 19:50:31 +0900 Subject: [PATCH] [fix] token exceptions --- .../config/Authentication/JwtAuthenticationEntryPoint.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/kimgreen/backend/config/Authentication/JwtAuthenticationEntryPoint.java b/src/main/java/com/kimgreen/backend/config/Authentication/JwtAuthenticationEntryPoint.java index 0bd9481..ab76ce8 100644 --- a/src/main/java/com/kimgreen/backend/config/Authentication/JwtAuthenticationEntryPoint.java +++ b/src/main/java/com/kimgreen/backend/config/Authentication/JwtAuthenticationEntryPoint.java @@ -56,5 +56,6 @@ public void setResponse(HttpServletResponse response,int status,String msg) thro json.put("message", msg); String newResponse = new ObjectMapper().writeValueAsString(json); response.getWriter().write(newResponse); + response.setStatus(status); } }