Home > Java > javaTutorial > body text

springmvc workflow

王林
Release: 2020-05-12 15:26:53
Original
3055 people have browsed it

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!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!