dubbo.xsd檔案 找不到,配置檔案報紅色標誌錯誤解決辦法
有些時候,專案中的application-dubbo-constumer.xml配置檔案報錯,意思是dubbo.xsd找不到
異常程式碼:
使用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檔案
windows->preferrence->xml->xmlcatalog
add->catalog entry ->file system 選擇剛剛下載的檔案路徑
修改key值和配置檔案的http://code.alibabatech.com/schema/dubbo/dubbo.xsd 相同
儲存。。在application-dubbo-constumer.xml檔案右鍵validate ok解決了。。