Working schematic diagram of SpringMVC:
SpringMVC process
1、? The user sends a request to the front-end controller DispatcherServlet.
2、? DispatcherServlet received a request to call HandlerMapping processor mapper.
3、? The processor mapper finds a specific processor (which can be searched according to xml configuration and comments), generates processor objects and processor interceptors (if any), and returns them to the DispatcherServlet.
4、? DispatcherServlet calls HandlerAdapter processor adapter.
5、? HandlerAdapter is suitable for calling a specific processor (controller, also known as back-end controller).
6、? The controller returns to ModelAndView after execution.
7、? HandlerAdapter returns the controller execution result ModelAndView to the DispatcherServlet.
8、? DispatcherServlet passes ModelAndView to ViewReslover view parser.
9、? ViewReslover parses and returns to a specific view.
10.DispatcherServlet renders the view according to the view (that is, populates the view with model data).
11.dispatcher servlet responds to users.