Home > Common Problem > body text

What is SpringMVC

青灯夜游
Release: 2020-10-13 11:52:00
Original
42884 people have browsed it

springmvc is a web layer mvc framework. It is a module of spring and has the characteristics of spring. Springmvc separates the roles of controllers, model objects, dispatchers, and handler objects.

What is SpringMVC

springMVC is a web layer mvc framework; it is a module of spring and has the characteristics of spring. The following article will introduce you to the springMVC framework. I hope it will be helpful to you.

Spring MVC is a follow-up product of SpringFrameWork and has been integrated into Spring Web Flow. The Spring framework provides full-featured MVC modules for building web applications. , you can choose whether to use the built-in Spring Web framework or a Web framework such as Struts. Through the strategy interface, the Spring framework is highly configurable and includes multiple view technologies, such as JavaServer Pages (JSP) technology, Velocity, Tiles, iText and POI. The Spring MVC framework is unaware of the views used, so it does not force you to use only JSP technology.

SpringMVC separates the roles of controllers, model objects, dispatchers, and handler objects. This separation makes them easier to customize.

Spring's MVC framework is mainly composed of DispatcherServlet, processor mapping, processor (controller), view resolver, and view.

SpringMVC operating principle

1. The client request is submitted to the DispatcherServlet

2. The DispatcherServlet controller queries one or more HandlerMappings and finds the processing The requested Controller

3. DispatcherServlet submits the request to Controller

4. After Controller calls business logic processing, it returns ModelAndView

5. DispatcherServlet queries one or more ViewResoler views. Parser, find the view specified by ModelAndView

6. The view is responsible for displaying the results to the client

The above is the detailed content of What is SpringMVC. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template