入门级的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