SevenAndSeven

导航

在Eclipse下出现dobbo索引错误,解决方案

在编译过程中出现了:

        org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Ignored XML validation warning org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://code.alibabatech.com/schema/dubbo/dubbo.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>.

 

本身运行不存在问题,但是由于错误显示。会导致心情不佳,故有一下解决方案:

   dubbo.xsd下载地址 微云地址:https://share.weiyun.com/5XzqhB4 提取码:6zes

    PS:不知道为啥百度云不让上传,只好先弄个微云了。后期添加百度云链接

   操作步骤如下:

    1)Window -----》Preferences -----》XML -----》XML Catalog -----》XML Catalog Entries中点击 -----》Add -----》Catalog Entry 

    -----》 Location(选择上方下载的dubbo.xsd存放位置)-----》Key type(选择:Namespace name) -----》 Key填写(http://code.alibabatech.com/schema/dubbo/dubbo.xsd)

 

问题就能解决,如果还是显示警报。重新将项目clean下。

 

posted on 2018-04-20 09:26  SevenAndSeven  阅读(212)  评论(0编辑  收藏  举报