Notice
Recent Posts
Recent Comments
Link
목록POST not supported (1)
Cronex

이 전 디버깅과 동일하게 진행되다가 dispatcherServlet에서 HandleAdapter의 handler 메소드를 실행하며 몇 개의 클래스를 더 거쳐서 controller를 실행됩니다. 이제 작성한 서비스에서 에러를 던지면 위에서 보이는 catch 블록으로 들어오게 됩니다. dispatcherServlet 에서는 catch문에서 dispatchException에 서비스에서 던진 에러를 할당하고 processDispatchResult를 실행한다. processDisptchResult에서는 handler를 찾아서 processHandlerException()을 호출한다. 여기서 핸들러[ mappedHandler.handler ]는 아래서 볼 수 있듯이 패키지를 포함하여 method 이름 인자까지 포함..
spring-boot/errors
2023. 4. 30. 00:54