1. 程式人生 > >dubbo配置檔案報錯schema_reference.4: Failed to read schema document ...

dubbo配置檔案報錯schema_reference.4: Failed to read schema document ...

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

解決方法;手動配置dubbo的xsd檔案

步驟1:獲取dubbo的xsd檔案

找到dubbo的jar包,解壓可以獲取到xsd檔案

步驟2.eclipse配置dubbo的xsd檔案

windows->preferrence->xml->xmlcatalog 

步驟3,儲存後,在xml檔案右鍵選擇validate ,ok,解決好了