您的位置:首页 > 编程语言 > Java开发

spring提示需要jdk1.5以上版本问题

2018-02-11 10:52 489 查看
Context namespace element 'component-scan' and its parser class [org.springframework.context.annotation.ComponentScanBeanDefinitionParser] are only available on JDK 1.5 and higher
网上查了一下,楼主的编译环境没问题,都是设置为jdk1.8,造成上面报错的原因是 在使用dubbo的时候没有剔除dubbo依赖的spring 包(好像为2.5的版本),剔除spring依赖包解决问题
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId>
<exclusions>
<exclusion>
<artifactId>spring</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
</exclusions>
</dependency>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐