For SpringMVC configuration files individually, then in the web. In the XML configuration integrated,
4.3.1, XML configuration spring - the MVC.
Configuration inside comments are very detailed, just don't say here, mainly automatic scanning controller, view mode, start the three annotations,
<? The XML version="1.0" encoding="utf-8"?>
XMLNS: context="http://www.springframework.org/schema/context"
XMLNS: MVC="http://www.springframework.org/schema/mvc"
Xsi: schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.1.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd "& gt;
4.3.2, configuration web. XML file
Here in the face of spring - mybatis. The introduction of XML, and configuration of spring - the Servlet MVC is in order to complete the integration of SSM, before 2 framework integrating don't need any configuration here, configuration has detailed notes, not much explains,
Web.xml
<? The XML version="1.0" encoding="utf-8"?>
Xsi: schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
Version="3.0" & gt;
ContextConfigLocation
The classpath: spring - mybatis. Xml
Encoding
Utf-8 & lt;/param - value>
ContextConfigLocation
The classpath: spring - the MVC. Xml