报错信息:

  Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-4.3.xsd). For more information, right click on
  the message in the Problems View and select "Show Details..."

  java使用spring框架配置文件时遇到的错误——Referenced file contains errors

  java使用spring框架配置文件时遇到的错误——Referenced file contains errors

这个错误在网上也找了很多解决方法,但是我用的是Myeclipse进行开发的,有些解决方法不能用,所以我就自己琢磨了一下报错信息,eclipse应该也同样适用。

首先观察报错信息:

  引用的文件包含错误 (http://www.springframework.org/schema/beans/spring-beans-4.3.xsd)

  应该是加载spring-beans-4.3.xsd出现的错误,其他人的报错信息有可能是:http://www.springframework.org/schema/beans/spring-beans-X.X.xsd(它报错的版本有可能不同,和你安装的spring版本有关)

  这里应该是无法下载spring-beans-4.3.xsd这个版本的插件,所以你自己设置一个版本号,当然要比4.3小的就可以。

  例如

  java使用spring框架配置文件时遇到的错误——Referenced file contains errors

  现在没有任何报错,完美解决。

   

这里贴上其他人写的关于eclipse使用spring配置时的解决方法。

 https://blog.csdn.net/zlj1217/article/details/61432437

 

相关文章:

  • 2021-08-11
  • 2021-06-12
  • 2022-12-23
  • 2021-12-31
  • 2021-11-24
猜你喜欢
  • 2021-05-24
  • 2021-04-08
  • 2021-06-04
  • 2022-02-04
  • 2022-12-23
  • 2021-12-27
  • 2021-12-17
相关资源
相似解决方案