解决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中显示红叉,当然,并不影响编译打包。

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

 

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

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

 

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

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

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

 

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

相关文章:

  • 2021-09-19
  • 2021-06-03
  • 2021-12-28
  • 2022-01-18
  • 2021-12-27
  • 2021-10-19
  • 2021-06-10
  • 2021-05-30
猜你喜欢
  • 2021-09-21
  • 2022-12-23
  • 2021-06-23
  • 2021-11-29
  • 2022-12-23
  • 2021-10-26
相关资源
相似解决方案