SpringMVC and springmvc tutorials
SpringMVC architecture process:
1. the user sends a request to the front-end controller DispatcherServlet
2. The DispatcherServlet receives a request to call the HandlerMapping processor er.
3. The processor er finds the specific processor based on the request url, generates the processor object and the processor Interceptor (if any), and returns it to DispatcherServlet.
4. DispatcherServlet calls the processor through the HandlerAdapter processor Adapter
5. The execution processor (Controller, also called the backend Controller ).
6. After the Controller is executed, return ModelAndView.
7. HandlerAdapter returns the controller execution result ModelAndView to DispatcherServlet
8. DispatcherServlet transmits ModelAndView to the ViewReslover view parser.
9. After ViewReslover resolution, return the specific View
10. The DispatcherServlet renders the View (filling model data into the View ).
11. Respond to the user with DispatcherServlet
Overall structure of Spring