From d3618de5f469cf5f54da584de902fb6e3b2575a1 Mon Sep 17 00:00:00 2001 From: hawardShin Date: Fri, 29 Nov 2024 21:37:59 +0900 Subject: [PATCH] Fix: Global Exception --- .../relation/global/exception/GlobalExceptionHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/capstone/relation/global/exception/GlobalExceptionHandler.java b/src/main/java/capstone/relation/global/exception/GlobalExceptionHandler.java index fc05b61..adf7e93 100644 --- a/src/main/java/capstone/relation/global/exception/GlobalExceptionHandler.java +++ b/src/main/java/capstone/relation/global/exception/GlobalExceptionHandler.java @@ -143,7 +143,7 @@ public ResponseEntity joEunDynamicExceptionHandler( @ExceptionHandler(Exception.class) protected ResponseEntity handleException(Exception ex, HttpServletRequest request) throws IOException { - ServletWebRequest servletWebRequest = (ServletWebRequest)request; + ServletWebRequest servletWebRequest = new ServletWebRequest(request); HttpServletRequest httpServletRequest = servletWebRequest.getRequest(); // 예외가 발생한 URL과 같은 요청에 대한 세부 정보를 추출 String url = httpServletRequest.getRequestURL().toString();