码迷,mamicode.com
首页 > 其他好文 > 详细

Referenced file contains errors For more information, right click on the message in the Problems View and select "Show Details..."

时间:2020-03-05 13:32:20      阅读:110      评论:0      收藏:0      [点我收藏+]

标签:general   odi   项目   org   ati   show   sele   cache   pre   

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

解决办法1:
在<?xml version="1.0" encoding="UTF-8"?>
下面加上<xml-body></xml-body>,等builder 完毕后再去掉,OK

解决办法2:
将 Preferences > XML > XML Files > Validation中"Honour all XML schema locations"前的对号去掉。它将禁用指向不同schema位置相同命名空间引用的验证,仅以第一次找到的可验证的XML文件为结果。

解决办法3:
点击eclipse左上角菜单栏 Project->clean 清理一下你所出现问题的项目。不仅这个问题,还有很多奇怪的问题都可以通过这种方式解决

解决办法4:
首先为了确保 Eclipse 可以从远程拿到 xsd 文件,到 Window -> Preferences -> General -> Network Connections -> Cache 下的 Cache entries 框内检查所需要的文件是否正确,如果不确定,就点击 "Remove All",然后右击当前的 Project 选择 Validator,Eclipse 会重新加载 xsd 文件;


Multiple annotations found at this line:
- schema_reference.4: Failed to read schema document ‘http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd‘, because 1) could
not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element ‘mvc:interceptors‘.

Referenced file contains errors For more information, right click on the message in the Problems View and select "Show Details..."

标签:general   odi   项目   org   ati   show   sele   cache   pre   

原文地址:https://www.cnblogs.com/Jeely/p/12419393.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!