cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration解決方法
阿新 • • 發佈:2018-11-03
搭建dubbo服務時提示無法下載dubbo.xsd檔案,可能因為xml引用的網站地址找不當前使用dubbo版本。
具體錯誤:
Multiple annotations found at this line:
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element ‘dubbo:application’.
- schema_reference.4: Failed to read schema document ‘http://code.alibabatech.com/schema/dubbo/dubbo.xsd
document; 2) the document could not be read; 3) the root element of the document is not .
根據錯誤提示發現從http://code.alibabatech.com/schema/dubbo/dubbo.xsd地址下無法下載dubbo.xsd文件,需要手動配置一下“
1. 去網上提前下載好dubbo.xsd文件,儲存到本地路徑下。
2. 在eclipse中選擇在windows->preferrence->xml->xmlcatalog->add->catalog entry ->file system
3.選擇下載好的dubbo.xsd文件
4.修改Key值,要和配置檔案中的” http://code.alibabatech.com/schema/dubbo/dubbo.xsd“地址一樣。
5.在xml檔案右鍵validate就可以解決了。