본문 바로가기
Programming/SpringFramework

[Spring] 스프링 MVC 모델

by prinha 2020. 7. 30.
반응형

 

 

스프링 MVC는 Model2 방식을 따르며 이 Model2의 아키텍처에 맞게 설계되어 있다.

 

1) DispatcherServlet가 Client요청을 받음 (중앙 제어실과 같음)

2) HandlerMapping이 알맞은 Controller를 찾음

3) HandlerMapping에 실행할 Controller의 메서드를 찾음 

4) Controller의 메서드를 실행하며 그 결과 Model로서 DispatcherServlet에 반환

5) ViewResolver는 알맞은 JSP파일을 찾음

6) View는 JSP파일을 Model의 정보를 토대로 Client에게 반환

 


 

2020/07/14 - [Jsp] - [JAVA/JSP] 모델2 기반의 MVC(MODEL-VIEW-CONTROLLER) Design Pattern

 

[JAVA/JSP] 모델2 기반의 MVC(MODEL-VIEW-CONTROLLER) Design Pattern

모델1 구조 : 웹브라우저의 요청(request)을 받아들이고, 웹 브라우저에 응답(response)하는 것을 jsp페이지가 단독으로 처리하는 구조 모델2 구조 : 요청(request) 처리, 데이터 접근(data access), 비즈니스.

prinha.tistory.com

 

반응형