MVC (Model-View-Controller)
- 제록스 연구소에서 일하던 트뤼그베 린즈커그가 처음으로 소개한 개념으로, 데스크탑 어플리케이션용으로 고안되었다.
- Model : 모델은 뷰가 렌더링하는데 필요한 데이터이다. 예를 들어 사용자가 요청한 상품 목록이나, 주문 내역이 이에 해당한다.
- View : 웹 애플리케이션에서 뷰(View)는 실제로 보이는 부분이며, 모델을 사용해 렌더링한다. 뷰는 JSP, JSF, PDF, XML 등으로 결과를 표현한다.
- Controller : 컨트롤러는 사용자의 액션에 응답하는 컴포넌트이다. 컨트롤러는 모델을 업데이트하고, 다른 액션을 수행한다.
MVC Model 1 아키텍처

MVC Model 2 아키텍처

MVC Model2 발전형태

Spring Web Module
Model 2 MVC 패턴을 지원하는 Spring Module

참고 : boostcourse https://www.boostcourse.org/web316/lecture/16762?isDesc=false
웹 프로그래밍(풀스택)
부스트코스 무료 강의
www.boostcourse.org
https://docs.spring.io/spring-framework/docs/3.2.x/spring-framework-reference/html/mvc.html
17. Web MVC framework
@RequestMapping(method = RequestMethod.POST) public String processSubmit(@ModelAttribute("pet") Pet pet, Model model, BindingResult result) { … } Note, that there is a Model parameter in between Pet and BindingResult. To get this working you have to reor
docs.spring.io
https://myblog.opendocs.co.kr/archives/tag/mvc-model2
MVC Model2 | Opendocs
myblog.opendocs.co.kr
https://www.javatpoint.com/model-1-and-model-2-mvc-architecture
Model 1 and Model 2 (MVC) Architecture - javatpoint
Model 1 and Model 2 (MVC) Architecture. Let's see the advantage and disadvantage of model 1 and model 2 (MVC) architecture.
www.javatpoint.com
'boostcource > boostcourse_web programming' 카테고리의 다른 글
| Spring MVC 구성 요소 2 (0) | 2024.07.07 |
|---|---|
| Spring MVC 구성요소 (0) | 2024.07.07 |
| Select, Delete (0) | 2024.07.06 |
| Insert, Update (0) | 2024.07.02 |
| Select (0) | 2024.07.01 |