Dubbo cvc-complex-type.2.4.c 錯誤,dubbo.xsd

    項目引入Dubbo以後,XML文件報錯:  windows

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:service'.
	- 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>.



以下圖所示: this

其實在項目中也不影響使用,只是強迫症的話,看着感受是項目報錯,就想着修改一下這裏的配置: spa

1: 解壓縮 Dubbo-*.jar 文件,在文件中找到 dubbo.xsd 文件; code

2:windows->preferrence->xml->xmlcatalog 
add->catalog entry  ->file system 選擇剛剛下載的文件路徑
修改key值和配置文件的http://code.alibabatech.com/schema/dubbo/dubbo.xsd 相同
保存。。在xml文件右鍵validate  ok解決了。 xml

相關文章
相關標籤/搜索