Overview of SpringMVC Layered Architecture
SpringMVC follows the Model-View-Controller (MVC) pattern to achieve high cohesion and low coupling. The architecture is divided into:
- View Layer: The presentation layer (JSP, HTML) used for UI display. It is often tightly coupled with the Controller layer.
- Controller Layer: Handles request routing and coordinates between the View and Service layers.
- Model Layer: Divided into the Service Layer (business logic) and the DAO Layer (database persistence).