a quick review on the Encyclopedia of MVC Ideas
The full name is the Model view controller, the models-view-controllers (Controller) abbreviation, a design pattern, which is a way to solve the problem and ideas
2 Purpose
The purpose of using MVC is to separate the implementation code for M and V, so that the same program can use different representations, and instruct the developer to decouple the data from the performance and improve the code, especially the reusability of the model part of the code.
3 composition
4 advantages
5 Nanyi Talk about MVC
If the MVC pattern is interpreted as a three-tier structure of "appearance", "mechanism", and "function/data", many human organizations can also use the MVC schema.
A mall, for example, can be divided into three parts. Part of the warehouse, is responsible for providing the goods, this is the "functional layer" (or "Data layer"), and the other part is the retail shop, responsible for the sale of goods, which is its "appearance layer", the two are "mechanism layer", including the counter and warehouse interaction between the mechanism.
After this distinction, the structure of the mall becomes very clear and can be optimized for different layers to improve efficiency
6 typical MVC
JSP + servlet + JavaBean mode