码迷,mamicode.com
首页 > 编程语言 > 详细

解决eclipse spring配置报错:cvc-elt.1: Cannot find the declaration of element

时间:2016-12-05 09:54:57      阅读:449      评论:0      收藏:0      [点我收藏+]

标签:work   www   clip   com   技术   依赖   contain   报错   frame   

解决eclipse spring配置报错:cvc-elt.1: Cannot find the declaration of element ‘beans‘.
Referenced file contains errors (http://www.springframework.org/schema/aop/spring-aop-3.1.xsd).

原因是无法从网络上读取到相应的schema文件,但实际上在浏览器中是可以访问的。
却一直在eclipse中显示红叉,当然,并不影响编译打包。

技术分享

 

查看所依赖的jar包文件中是否真的存在相应的schema文件。

技术分享技术分享

 

如果maven依赖的jar包已经存在相应schema文件,直接改为本地classpath依赖路径即可。

技术分享

配置为本地classpath依赖路径之后,eclipse中的红叉报错提示消失。

 

参考:http://blog.csdn.net/legendj/article/details/9950963

解决eclipse spring配置报错:cvc-elt.1: Cannot find the declaration of element

标签:work   www   clip   com   技术   依赖   contain   报错   frame   

原文地址:http://www.cnblogs.com/nuccch/p/6132665.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!