(1) In MVC (model View Controller) M refers to the business model, V refers to the user interface (view), C is the controller, the purpose of using MVC is to separate the implementation code of the Model (M) and view (V) so that the same program can use a different representation. The purpose of the controller (C) is to ensure that the model (m) and view (v) are synchronized, and that once the model (m) changes, V should be updated synchronously.
(2) Model is a part of the logic used to process application data, and typically model objects are responsible for accessing data in the database.
(3) View is the part of the application that handles the display of data, and the view is typically created from model data.
(4) A controller is a part of an application that handles user interaction, typically the controller is responsible for reading data from the view, controlling user input, and sending data to the model.
(5) MVC layering helps manage complex applications, simplifies group development, and enables different developers to develop views, controller logic, and business logic at the same time.
(6) MVC separates the input, processing, and output of an application, and they each handle their own tasks. The most typical MVC is the JSP + Servlet + JavaBean pattern.
MVC understanding?