xml第一行报错解决方法
项目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,保存。
然后选择报错的的 Project 右键选择 Validator,Eclipse 会重新加载 xsd 文件。
刷新项目,不会有报错。
参考博客:https://blog.****.net/zlj1217/article/details/61432437
后续又遇到同样错误,根据上述操作,未起作用,
后来查到如果你的工具比较新,有可能是缺少标签,加上xml-boday标签就OK。