Core process of Spring MVC (STEP)

Source: Internet
Author: User

Specific steps:        

1, the client sends the request to go through the front-end controller, request by the Spring Front controller Dispatcherservlet obtains, as detailed diagram first step:DISPATCHERSERVL Et parses the request URL (for example, we send a request with the following URL (http://localhost:8080/SpringMVC/hello.action), and we get the request resource Identifier (URI, which is equivalent to the hello.action above).

2. Then the front controller Dispatcherservlet, based on the URI, invokes the processor mapper (handlermapping) to obtain all related objects of the handler configuration (including the handler object and the interceptor corresponding to the handler object). Finally, the processor object is generated and returned to the front controller.

3. The front controller invokes the processor adapter to perform Handler,handler execution to return Modelandview to the adapter and returns Modelandview to Dispatcherservlet.

4, Dispatcherservlet the Modelandview to Viewreslover View parser parsing (parse into JSP), and return to view.

5. Dispatcherservlet view is rendered (the model data is populated into the view).

6. Finally, the result of rendering view is responded to the client.

Core process of Spring MVC (STEP)

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.