1. 程式人生 > >xml文件不識別dubbo標簽,添加支持的方法

xml文件不識別dubbo標簽,添加支持的方法

bsp net con -m cat 使用 mod src -s

使用dubbo時遇到問題:

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://github.com/alibaba/dubbo

技術分享圖片

eclispe-->window-->preferences-->xml catalog-->add 註意KEY 需要以/dubbo.xsd結尾,如下圖所示

技術分享圖片

本文轉自:http://blog.csdn.net/wzygis/article/details/51381905 感謝作者

xml文件不識別dubbo標簽,添加支持的方法