https://lkg3796.tistory.com/58
실행 흐름 순서
@Controller의 실행 흐름
Client -> Request -> Dispatcher Servlet -> Handler Mapping -> Controller -> View -> Dispatcher Servlet -> Response -> Client
@ResponseBody의 실행 흐름
Client -> Request -> Dispatcher Servlet -> Handler Mapping -> Controller (ResponseBody)-> Response -> Client
@RestController의 실행 흐름
Client -> HTTP Request -> Dispatcher Servlet -> Handler Mapping -> RestController (자동 ResponseBody 추가)-> HTTP Response -> Client
'Spring' 카테고리의 다른 글
Spring RestTemplate는 기본적으로만 사용하면 커넥션 풀 지원안함 (0) | 2020.08.07 |
---|---|
Spring Integration, Payload 란 무엇인가? 용어정리 (0) | 2019.11.29 |
댓글