SpringMVC execution process, springmvc Process
SSM framework:Spring, springmvc, and mybatis processes:1. the user sends a request, XX/XX. do2. Request to use the central controller to find the processor er HandlerMapping3. A Handler (processor) in the processor return center controller)4. Find the processor adapter HandlerAdapter in the central controller.5. The processor adapter acts on the processor and starts execution.6. After the processor is executed, return ModleAndView7. ModelAndView is finally returned to the central controller.8. The central controller finds the view parser ViewResolver and uses the view in ModelAndView to find the corresponding view.9. Return the view to the central controller.10. The central controller fills in the View returned by the View parser based on the Model in the returned ModleAndView.11. Return the rendered View to the client.DispatcherServler: the central controller is in the web. we do not need to develop the configuration in xml. springmvc provides HandlerMapping: The processor ing does not need to be developed in the springmvc main configuration file. springmvc provides Handler: the processor is the java class of the action layer we developed. HandlerAdapter is developed by ourselves. The processor adapter does not need to be configured in the springmvc main configuration file. springmvc provides ViewResoler: the view parser does not need to be developed by ourselves in the spring MVC main configuration file. springmvc provides the model: the model (the data obtained in the database) is taken from the database by the real business logic, we develop the data transfer function by ourselves.