SpringMVC entry configuration and springmvc entry Configuration

Source: Internet
Author: User

SpringMVC entry configuration and springmvc entry Configuration

First, sort out springMVC's workflow as follows:
Bytes

First, configure the environment and import the required jar package. You can build it online or using maven and other project building tools. step 1: Request the Request first to the Dispatcher Servlet (equivalent to the Controller); Step 2: The Dispatcher Servlet to find a Handlermapping (configured in the configuration file ), you can use Handlermapping to find the specific Controller that processes the current URL. Step 3: hand it over to the corresponding Controller. Step 4: The Controller interacts with the Service and Bean, process to get a value. Step 5: Obtain the specific view to be returned through ViewResolver Based on the returned value. Step 6: Find a specific view and return it to the Dispatcher Servlet.

SpringMVC Development Process:

1. Import the package; 2. Configure the Dispatcher Servlet; (start in web. xml)

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.