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();