Context namespace element 'component-scan' 提示 only available on JDK 1.5 and higher

来源:互联网 发布:塞班看图软件 编辑:程序博客网 时间:2024/06/13 14:57

开发工程中,出现Context namespace element 'component-scan' and its parser class [org.springframework.context.annotation.ComponentScanBeanDefinitionParser] are only available on JDK 1.5 and higher

此错误是由于在Tomcat中部署项目时,Tomcat 选择的JDK版本过高引起的,选择JDK1.7以下版本可以排除此错误

如下图所示选择JDK1.7,点击OK确认即可

步骤1:右键点击Tomcat,点击Configure Server Connector


步骤2:


阅读全文
0 0