MVC: Development Patterns

1. Basic introduction to MVC

(1) M: Module, model. JavaBean
completes specific business operations, such as: querying the database, encapsulating objects
(2) V: View, view. JSP
display data
(3) C: Controller, controller. Servlet
①Gets the user's input
②Calls the model
③Submits the data to the view for display

2. Advantages and disadvantages of MVC

(1) Advantages:
① Low coupling, easy maintenance, conducive to division of labor and cooperation
② High reusability
(2) Disadvantages:
It makes the project structure complex and requires high requirements for developers

おすすめ

転載: blog.csdn.net/y516369/article/details/127055585