How spring MVC works

Spring MVC operating principle
(1). The client request is submitted to the DispatcherServlet
(2). The DispatcherServlet controller queries one or more HandlerMappings to find the Controller that handles the request.
(3). The DispatcherServlet submits the request to the Controller
(4). Controller After calling business logic processing, MondelAndView
(5). DispatcherServlet queries one or more ViewResoler view resolvers and finds the view specified by MondelAndView
(6). The view displays the result to the client

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325860862&siteId=291194637