異常信息
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', 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>.
異常.png
錯誤原因:
http://code.alibabatech.com/schema/dubbo/dubbo.xsd
此頁面已無法下載
解決辦法:
-
將
dubbo-2.6.1.jar
解壓, 進入META-INF文件夾
dubbo-2.6.1.png -
在eclipse中Window->Preferences->XML->XML Catalog挤聘,選中User Specified Entries得滤,點擊Add...
XML.png -
點擊File System...選擇剛剛解壓出來的dubbo.xsd文件
Add XML Catalog Element.png
Add XML Catalog Element-New.png -
將圖中的Key:的內(nèi)容修改為
http://code.alibabatech.com/schema/dubbo/dubbo.xsd
, 點擊確定。
修改后的內(nèi)容.png 在對應(yīng)的xml文件中右鍵,選擇Validate即可躯砰。