1. 程式人生 > >dobbo xml校驗紅叉出錯問題處理

dobbo xml校驗紅叉出錯問題處理

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>.


雖然不影響執行,但看著畢竟不爽

處理辦法:

1、搜尋本地專案的maven依賴庫,找到dobbo.jar。


2、解壓dobbo-2.5.3.jar,在META-INF下面找到dubbo.xsd檔案。

3、開啟eclipse, window-->xml-->xmlCatalog-->add-->FileSystem,引入dubbo.xsd檔案

4、修改key值http://code.alibabatech.com/schema/dubbo/dubbo.xsd


5、對著xml檔案validate後紅叉消失。