Skip to content

Commit

Permalink
Fix: Global Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Hawardshin committed Nov 29, 2024
1 parent fcee225 commit d3618de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public ResponseEntity<ErrorResponse> joEunDynamicExceptionHandler(
@ExceptionHandler(Exception.class)
protected ResponseEntity<ErrorResponse> 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();

Expand Down

0 comments on commit d3618de

Please sign in to comment.