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)