SpringMVC execution process, springmvc Process

Source: Internet
Author: User

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.