1. Introduction to the MVC pattern
MVC is a design pattern or a programming idea, and it cannot be said that MVC is a framework.
M-model Model
The role of model is to be responsible for business logic. Consists of two tiers: business data and business processing logic. For example, the entity class, dao,service all belong to the model layer.
V-view View
The view's responsibility is to display the interface and user interaction.
C-controller Controller
A controller is a bridge between the model layer m and the view layer to control the process of invocation.
2. What is SPRINGMVC
SPRINGMVC is a representation of the spring framework after implementing the MVC function module.
The Spring framework provides a full-featured MVC module for building Web applications. When using spring for web development, you can choose to use the Spring SPRINGMVC framework or integrate with other MVC development frameworks.
3. Core components of SPRINGMVC
Dispatcherservlet (Controller, requested entrance)
Handlermapping (Controller, requested)
Controller (Director, request processing process)
Modelandview (model, encapsulating Business processing results and views)
Viewresolver (view, view display processor)