Current location - Education and Training Encyclopedia - Graduation thesis - What is mvc framework (what is Mvc)
What is mvc framework (what is Mvc)
What are the common MVC frameworks?

Common MVC frameworks include JSP? servlet? Javabean's pattern.

A framework of MVC pattern, which forcibly separates the input, processing and output of the application. Applications using MVC are divided into three core components: model, view and controller. They each deal with their own tasks. The most typical MVC is JSP? servlet? Javabean's pattern.

The main purpose of using the mvc framework core controller is to handle all requests, and then uniformly handle those special requests (controllers) (character encoding, file uploading, parameter acceptance, exception handling, etc.). ).). The core controller of SpringMVC is Servlet, and Struts2 is Filter.

MVC framework performance

? SpringMVC will be a little faster than Struts2. SpringMVC is a method-based design, while Sturts2 is a class-based design. Every time a request is sent, an action is instantiated and each action is injected with attributes. SpringMVC is based on methods and has finer granularity, but it should be controlled as carefully as data in servlet.

SpringMVC is a method-level interception. After intercepting the method, the request data is injected according to the comments on the parameters. In SpringMVC, a method corresponds to a request context. Struts2 framework is class-level interception. Every time a request comes, an action is created and the settergetter method is called to inject data into the request. Struts2 actually processes requests through the settergetter method.

Reference source: Baidu Encyclopedia -mvc framework mvc is a framework model that forcibly separates the input, processing and output of applications. Applications using mvc are divided into three core components: model, view and controller. They each deal with their own tasks. The most typical mvc pattern is jspservletjavabean pattern. Many frameworks are designed to facilitate the realization of MVC pattern, such as Struts and spring.

Nowadays, many companies implement MVC framework by themselves instead of using open source framework.

Struts 1, Struts2, SpringMVC, Grails and JSF are commonly used MVC frameworks, so is Tapestry.

What does mvc framework mean? For example!

The most commonly used structure in the WEB. Baidu will have a very specific explanation. Do you need to make a web page or something? Take j2ee as an example. Many mvc frameworks I have used are front-end presentations: jsp(htmlcssjs(jquery)) and back-end: Struts2/1Springbatis/Hibernate/MyBatis, which are quite popular at present. Hibernate has the best database compatibility. Ibatis/mybatis is easier to use.