Home > Back-end >  Dispatcherservlet configuration
Dispatcherservlet configuration

Time:09-28

Dispatcherservlet belongs to, the springmvc core classes, why not configuration in for springmvc. The XML file, but the configuration in the web. In the XML, how do you understand?

CodePudding user response:

Because the browser request must be sent to the tomcat server, and then find the corresponding httpSerlet processing, not directly to find Spring

CodePudding user response:

For SpringMVC namely intercept access page file path of the common way, way to switch to a similar call interface, so you must access the server configuration from the start, so in the web. The XML configuration, web. For SpringMVC in XML is used to intercept all requests
  • Related