-
카테고리
-
세부 분야
백엔드
-
해결 여부
미해결
error Message null
23.10.31 16:15 작성 조회수 895
5
error message 가 null로 표기되네요
분명히 404 오류! 메시지가 포함이되어있는데
스프링 3.0이상과 2.5버전이 달라서 그런건가요 ?
답변을 작성해보세요.
21
1
왕이될상인가
2024.02.17
RequestDispatcher.ERROR_...로 한번 해보세요
log.info("ERROR_EXCEPTION: {}", request.getAttribute(RequestDispatcher.ERROR_EXCEPTION));
log.info("ERROR_EXCEPTION_TYPE: {}", request.getAttribute(RequestDispatcher.ERROR_EXCEPTION_TYPE));
log.info("ERROR_MESSAGE: {}", request.getAttribute(RequestDispatcher.ERROR_MESSAGE));
log.info("ERROR_REQUEST_URI: {}", request.getAttribute(RequestDispatcher.ERROR_REQUEST_URI));
log.info("ERROR_SERVLET_NAME: {}", request.getAttribute(RequestDispatcher.ERROR_SERVLET_NAME));
log.info("ERROR_STATUS_CODE: {}", request.getAttribute(RequestDispatcher.ERROR_STATUS_CODE));
log.info("dispatchType={}", request.getDispatcherType());
답변 2