Eclipse解決關於dubbo在xml中出現Multiple annotations found at this line
阿新 • • 發佈:2018-12-23
之前都遇到這樣的問題,但是都沒在意,只是解決了,後才才意識到應該總結下的,對自己畢竟來說是一個成長。畢竟這張圖說明當前生活狀況 hh`
具體錯誤貼出來:
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>.
最主要的原因Eclips中沒有下載關於dubbo的xsd
下載dubbo的xsd地址:
http://download.csdn.net/download/he000111/8244449
解決方法:
windows->preferrence->xml->xml catalog
add->catalog entry ->file system 選擇剛剛下載的檔案路徑
上圖:
儲存完畢之後,對xml檔案右鍵 ------> Validate
好了 問題解決
文章來源網路,版權歸作者本人所有,如侵犯到原作者權益,請與我們聯絡刪除或授權事宜
如果有誤,請聯絡作者更改,謝謝,本人微信:void666666