-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Dispatcher Servlet 동작 원리 추가 #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -893,7 +893,15 @@ print("hello world!") | |||||||||||||||||
| <details> | ||||||||||||||||||
| <summary>Spring Web MVC의 Dispatcher Servlet의 동작 원리에 대해서 간단히 설명해주세요.</summary> | ||||||||||||||||||
| </br> | ||||||||||||||||||
| <p></p> | ||||||||||||||||||
| <p>1. 클라이언트로부터 HTTP요청이 들어오면 HandlerMapping을 통해 URL에 매핑된 핸들러를 조회한다.</p> | ||||||||||||||||||
| <p>2. 핸들러를 실행할 수 있는 핸들러 어댑터를 조회한다.</p> | ||||||||||||||||||
| <p>3. 핸들러 어댑터를 실행한다.</p> | ||||||||||||||||||
| <p>4. 핸들러 어댑터가 실제 핸들러를 실행한다.</p> | ||||||||||||||||||
| <p>5. 핸들러 어댑터는 핸들러가 반환하는 정보를 ModelAndView로 변환해서 반환한다.</p> | ||||||||||||||||||
| <p>5. 뷰 리졸버를 호출한다.</p> | ||||||||||||||||||
| <p>6. 뷰 리졸버가 뷰의 논리 이름을 물리 이름으로 바꾸고 렌더링 역할을 담당하는 뷰 객체를 반환한다.</p> | ||||||||||||||||||
| <p>7. 반환된 뷰를 통해 뷰를 렌더링한다.</p> | ||||||||||||||||||
|
Comment on lines
+900
to
+903
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 최근에는 RestController도 자주 사용하기 때문에 좀더 일반적인 내용으로 변경해주시는게 좋을 것 같아요.
Comment on lines
+900
to
+903
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||
|
|
||||||||||||||||||
| </details> | ||||||||||||||||||
|
|
||||||||||||||||||
| <details> | ||||||||||||||||||
|
|
||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
핸들러 어댑터에 위임한다고 표현해도 좋을 것 같아요.