Home >Common Problem >What is SpringMVC
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.
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!