Myeclipse中使用dubbo報錯Multiple annotations found at this line

在使用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中導入這個文件。

  1. 文件下載:點擊打開下載鏈接
  2. 打開myeclipse,選擇 windows->preferrence->xml->xmlcatalog進入一下界面:
    在這裏插入圖片描述
  3. 點擊add->file System 選擇下載的dubbo.xsd文件,然後點擊打開
    dubbo.xsd
  4. 修改下面的key值,默認是沒有後面的dubbo.xsd,添加上然後點擊確認
    key值修改
    到此問題即可以解決了。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章