SpringMVC整合

1.出现404错误

 

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [D:\apache-tomcat-6.0.41\webapps\jinyu\WEB-INF\classes\com\controller\IndexController.class]; nested exception is org.springframework.core.NestedIOException: ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn't supported yet: file [D:\apache-tomcat-6.0.41\webapps\jinyu\WEB-

INF\classes\com\controller\IndexController.class]; nested exception is java.lang.IllegalArgumentException

这是因为spring和jdk的版本问题

Java 8    requires    Spring 4.

 

如果使用spring4 需要安装Java7或者6

posted @ 2016-07-19 19:26  小呀小二郎  阅读(170)  评论(0编辑  收藏  举报