javax.servlet.ServletException: Servlet.init() for servlet rootServlet threw exception
这是因为jdk1.8与spring3.2版本不兼容
将jdk版本降为1.7 或者 使用Spring4
如果使用spring4 则需要引入一下依赖
<dependency><groupId>org.springframework</groupId><artifactId>spring-context</artifactId><version>4.3.9.RELEASE</version><exclusions><!-- Exclude Commons Logging in favor of SLF4j -->
<exclusion><groupId>commons-logging</groupId><artifactId>commons-logging</artifactId></exclusion></exclusions></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-webmvc</artifactId>
<version>4.3.9.RELEASE</version>
</dependency>
如果没有此依赖会出现报错为
java.lang.IllegalArgumentException: No converter found for return value of type: class xxxxxxx