Skip to content

컨트롤러의 리턴 타입이 ModelAndView가 아닐 경우, DispatcherServlet은 어떠한 처리 과정을 거치는가? #6

Description

@great-park

@controller의 실행 흐름
Client -> Dispatcher Servlet -> Handler Mapping -> Handler Adapter ->
Controller -> Handler Adapter -> Dispatcher Servlet -> ViewResolver -> -View >Client

@RestController의 실행 흐름
Client -> Dispatcher Servlet -> Handler Mapping -> Handler Adapter ->
RestController (자동 ResponseBody 추가)-> Handler Adapter -> Dispatcher Servlet -> HTTP Response -> Client

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions