一,问题分析

  在学习 JavaWeb 的开发,很多时候我们会引用许多 JAR ,以为版本的问题,有时候就会出现这个问题:reference file contains errors (引用文件包含错误)。情况如下图所示:

 

  reference file contains errors

 问题提示的错误是:

  reference file contains errors

 

二、解决方案

  解决分案有两种,具体如下:

  方案一:

  那就是根据错误提示来改,因为 JAR  包中的有版本问题。既然错误中有提示,那么我们就按照错误的提示。将我的 spring-beans 改为 spring-beans-4.3 就可以了。 

reference file contains errors

  

  方案二:

  那就如  所示,我们就不然系统去监测我们的 XML 文件。直接去掉 XML 文件的验证,提高文件的编译速度。

  具体做法:

  Myeclipse :Window--Preferences--Validation,去掉XML Validator 和 XSL Validator 等文件类型的验证

  eclipse :Window--Preferences--General--Validation,可以去掉XML Validator 和 XSL Validator 等文件类型的验证

 

  reference file contains errors

 

  我个人推荐该版本问题,验证 XML 还是要有,不然有些细小的错误,我们还是没有机器检查的前面些!

 

 

 

 

  

 

相关文章:

  • 2021-10-13
  • 2021-12-15
  • 2022-12-23
  • 2021-10-29
  • 2022-12-23
  • 2021-06-27
  • 2021-08-11
  • 2021-04-29
猜你喜欢
  • 2021-12-05
  • 2021-12-17
  • 2022-12-23
  • 2021-07-03
  • 2021-11-04
  • 2021-05-14
相关资源
相似解决方案