Spring WEB MVC processing Request process

Source: Internet
Author: User
recommend a series of blog to learn spring, this article is also read one of the blog wrote. poke here .

The Spring Web MVC Framework is a request-driven web framework and is also designed using a front-end controller pattern, distributed to the appropriate page controller (action/processor) for processing according to the request mapping rules.

Spring WEB MVC processes The process of a request:

The following steps are implemented:
1, the first user to send the request ———— > front-end controller, the front-end controller based on the request information (such as URL) to decide which page controller to process and entrust the request to it, that is, the control of the previous controller logic part of the diagram of the 1, 2 steps;
2, the page controller receives the request, carries on the function processing, first needs to collect and bind the request parameter to an object, this object is called the Command object in the Spring Web MVC, validates, and then delegates the command object to the business object for processing ; After processing, return a modelandview (model data and logical view name); 3, 4, 5 steps in the figure;
3, the front-end controller to reclaim control, and then according to the return of the logical view name, select the appropriate view for rendering, and the model data passed to the view rendering; steps 6, 7 in the figure;
4, the front-end controller to regain control again, return the response to the user, the figure of Step 8, the end of the whole.

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.