项目import第一行小红叉报错,点击左上角小红叉,显示如下:
Referenced file contains errors
(http://mybatis.org/dtd/mybatis-3-config.dtd).
For more information, right click on the message in the Problems View and select “Show Details…”
引用的文件包含错误
解决方法:
将Window -> Preferences -> General -> Network Connections -> Cache 下的 Cache entries 框内文件Remove All,保存。
xml第一行报错解决方法
然后选择报错的的 Project 右键选择 Validator,Eclipse 会重新加载 xsd 文件。
刷新项目,不会有报错。
参考博客:https://blog.csdn.net/zlj1217/article/details/61432437

后续又遇到同样错误,根据上述操作,未起作用,
xml第一行报错解决方法
后来查到如果你的工具比较新,有可能是缺少标签,加上xml-boday标签就OK。
xml第一行报错解决方法

相关文章:

  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2019-12-07
  • 2022-12-23
  • 2021-08-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-04-18
  • 2022-02-04
  • 2021-11-14
  • 2021-10-30
  • 2021-12-05
  • 2021-07-24
相关资源
相似解决方案