Home >Java >javaTutorial >springmvc workflow
springmvc workflow
1. The user sends a request to the server. This request will first go to the front-end controller DispatcherServlet (also called the central controller).
2. DispatcherServlet will call the HandlerMapping processor mapper after receiving the request. From this we know which Controller should handle the request (the Controller is not called, just known).
3. DispatcherServlet calls the HandlerAdapter processor adapter and tells the processor adapter which Controller it should execute.
(Video tutorial recommendation: java video)
4. The HandlerAdapter processor adapter executes the Controller and gets the ModelAndView (data and view), and returns it to the DispatcherServlet layer by layer. .
5. DispatcherServlet hands ModelAndView to ViewReslover view parser for analysis, and then returns the real view.
6. DispatcherServlet fills the model data into the view.
7. DispatcherServlet responds to the user with the results.
Recommended tutorial: java entry program
The above is the detailed content of springmvc workflow. For more information, please follow other related articles on the PHP Chinese website!