It was this mistake that cost me a lot of mental labor ...
Online Search is the solution:
1. Replacing the JDK with 1.7 or 1.7 of the following is useless to me.
2. Replacing spring version 4.0 is no use to me.
3. Test the useful method, replace your pom.xml, I use idea software.
Change my own pom ... Here's my pom.
?XML version= "1.0"encoding= "UTF-8"?> <Projectxmlns= "http://maven.apache.org/POM/4.0.0"xmlns:XSI= "Http://www.w3.org/2001/XMLSchema-instance" XSI: schemalocation= "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelversion>4.0.0</modelversion> <Packaging>war</Packaging> <name>springmvc</name> <groupId>CN. springmvc</groupId> <Artifactid>springmvc</Artifactid> <version>1.0-snapshot</version> <URL>http://maven.apache.org</URL> <Dependencies> <Dependency> <groupId>junit</groupId> <Artifactid>junit</Artifactid> <version>3.8.1</version> <Scope>test</Scope> </Dependency> <!--HTTPS://MVNREPOSITORY.COM/ARTIFACT/ORG.SPRINGFRAMEWORK/SPRING-WEBMVC--> <Dependency> <groupId>org.springframework</groupId> <Artifactid>spring-webmvc</Artifactid> <version>4.3.7.release</version> </Dependency> <!--beans automatically introduces dependent core into--> <Dependency> <groupId>org.springframework</groupId> <Artifactid>spring-beans</Artifactid> <version>4.2.3.release</version> </Dependency> <!--context dependent n--> <Dependency> <groupId>org.springframework</groupId> <Artifactid>spring-context</Artifactid> <version>4.2.0.release</version> </Dependency> <Dependency> <groupId>junit</groupId> <Artifactid>junit</Artifactid> <version>4.12</version> </Dependency> <!--woven dependency--> <Dependency> <groupId>org.aspectj</groupId> <Artifactid>aspectjweaver</Artifactid> <version>1.8.7</version> </Dependency> <!--https://mvnrepository.com/artifact/org.springframework/spring-web--> <Dependency> <groupId>org.springframework</groupId> <Artifactid>spring-web</Artifactid> <version>4.3.7.release</version> </Dependency> <!--Servlet api--> <Dependency> <groupId>javaee</groupId> <Artifactid>javaee-api</Artifactid> <version>5</version> </Dependency> </Dependencies> < Build> < Resources> <Resource> <Directory>src/main/java</Directory> <includes> <include>**/*.xml</include> </includes> </Resource> </ Resources> </ Build> </Project>