SPRINGMVC schematic diagram of working principle

Source: Internet
Author: User

Above is the schematic diagram of SPRINGMVC's work:

1. The client sends an HTTP request to the Web Server, which parses the HTTP request. If the request mapping path (specified in Web. xml) matches the Dispatcherservlet, the Web container will forward the request to Dispatcherservlet.

2.Dipatcherservlet receives this request will be based on the requested information (including URL, HTTP method, request packet header and request parameter cookie, etc.) and handlermapping Configuration to find the processor that processed the request (Handler).

3-4,Dispatcherservlet according to handlermapping find the corresponding Handler, will handle the right to Handler (Handler the specific processing to encapsulate), and then by the specific handleradapter to the Handler to make a specific call.

5,Handler will return a Modelandview () object to Dispatcherservletafter the data processing is completed.

6.Handler return modelandview() Just a logical view is not a formal view, dispatchersevlet through viewresolver turn a logical view into a real view View .

7, dispatcher through the model to parse out the parameters in the Modelandview () and finally show the full view and return

SPRINGMVC Working principle

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.