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


解决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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM