在使用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',
because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not
解決方案
要解決這個問題需要下載dubbo.xsd文件,然後在myeclipse中導入這個文件。
- 文件下載:點擊打開下載鏈接
- 打開myeclipse,選擇
windows->preferrence->xml->xmlcatalog
進入一下界面:
- 點擊add->file System 選擇下載的dubbo.xsd文件,然後點擊打開
- 修改下面的key值,默認是沒有後面的dubbo.xsd,添加上然後點擊確認
到此問題即可以解決了。