FIG an MVC design pattern read from the user initiates a request to get a response, in the end internal application is how to transfer data, traffic series

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/qq_41885819/article/details/101002701

MVC (Model View the Controller Model - View - Controller) is a typical software design for layered application development.

  • The Model (Model) object data model represents an access or JAVA POJO. It can also carry logic, update controller when data changes.
  • View Visualization (view) view contains data representative of the model.
  • Controller The controller acting on the model and the view. It controls data flow model objects, view and update the data changes. It is the view and the model separated.

Here Insert Picture Description
When the user initiates a request to the unified received by the control layer and distribution layer delegation model for data processing; return result after obtaining process model layer, the control layer to parse the data referred to render view layer, and finally to show the user front view is highly readable interface.
After data acquisition / processing completion; assumed that a user initiates a query request student information, the control layer after receiving the request, the request distribution layer corresponding to the model to process data, where students need to obtain information related to the DAO to return to the controller layer, the data controller or data object layer here, but also through associated html or template rendering engine to parse, the final show in front of the student information the user needs is its friends.
Controller layer similar to the central processor, is responsible for scheduling all the relevant application requests, data processing, rendering parsing, orderly.
mvc pattern in a way that makes program development decoupling, jsp modify only need to modify the view layer, modified dao only need to modify the model layer.

Guess you like

Origin blog.csdn.net/qq_41885819/article/details/101002701