首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >解决eclipse spring配置报错:cvc-elt.1: Cannot find the declaration of element

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

作者头像
编程随笔
发布2019-09-11 15:26:30
发布2019-09-11 15:26:30
5.2K0
举报
文章被收录于专栏:后端开发随笔后端开发随笔

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

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2016-12-05 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档