A brief introduction to MVC architecture

1: Introduction to MVC architecture

MVC is the abbreviation of Model + view + controller.

This is introduced in Baidu Encyclopedia: MVC forces the input, processing and output of the application to be separated. Applications using MVC are divided into three core components: model, view, and controller. They each handle their own tasks. The most typical MVC is the JSP + servlet +javabean model

The execution process is operated by the client of the terminal. The controller conveys the request to the M layer based on the user's operation. The M layer receives the request to perform actions on the database, thereby calling the database data and displaying it to the V layer, which is the front-end. The page is displayed.

 

2: Application of MVC framework

C layer:

M layer:

 V layer:

 (!!! MVC architecture is just an idea, we need to understand these ideas before extending and learning other architectures!!!)

Three: Summary

In general, the MVC architecture simplifies the development process and provides an idea to reduce the technical content of developing and maintaining user interfaces. This greatly reduces development time, allowing programmers (Java developers) to focus on business logic, and interface programmers (and JSP developers) to focus on presentation. However, using MVC will also separate the model, view and controller, which will increase the complexity of the structure and may produce too many update operations and reduce operating efficiency.

Guess you like

Origin blog.csdn.net/weixin_69656529/article/details/128984513