Spring구조
-
Spring 구조1Java 2023. 10. 17. 07:57
MVC 패턴 MVC는 프로젝트를 구성할 때 Model, View, Controller의 역할로 구분함 Model 애플리케이션의 정보, 데이터 나타냄 DB, 변수, 상수 등을 의미 이러한 데이터를 파싱하거나 DB와의 통신 또한 책임지는 컴포넌트 (비즈니스 로직) 규칙 사용자가 다루길 원하는 모든 데이터를 가지고 있어야 함 View나 Controller에 대해서 어떤 정보도 알면 안 됨 변경이 일어나면 변경 통지에 대한 처리 방법 구현 View 사용자가 보는 화면 input, 체크박스, 라디오 버튼 같은 사용자 인터페이스 요소 의미 데이터를 기반으로 사용자들이 볼 수 있는 화면 규칙 Model이 가지고 있는 정보를 따로 저장하면 안 됨 Model이나 Controller에 대해서 알면 안 됨 변경이 일어나면 ..