Introduction to how springMVC works

The working principle of springMVC:
1). Spring mvc asks all requests to be submitted to DispatcherServlet, which entrusts other modules of the application system to be responsible for the real processing of requests.
2) .DispatcherServlet queries one or more HandlerMappings and finds the Controller that processes the request.
3) .DispatcherServlet please submit the request to the target Controller
4). After the Controller performs business logic processing, it will return a ModelAndView
5) .Dispathcher queries one or more ViewResolver View resolver, find the view object specified by the ModelAndView object
6). The view object is responsible for rendering and returning it to the client.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326653426&siteId=291194637