SpringMVC

来源:互联网 发布:51单片机汇编指令表 编辑:程序博客网 时间:2024/06/06 18:38

入门级的SpringMVC时,

报错如下:

java.lang.IllegalStateException: Context namespace element 'component-scan' and its parser class [org.springframework.context.annotation.ComponentScanBeanDefinitionParser] are only available on JDK 1.5 and higher

由于新安装的jdk8,之前的spring2.5.6下的spring.jar包不支持jdk8,所以出现错误。

解决办法:

更换新的spring包:4.2.0


0 0
原创粉丝点击