1. 程式人生 > >Failed to read schema document 'http://code.alibabatech.com/schema/dubbo/dubbo.xsd'

Failed to read schema document 'http://code.alibabatech.com/schema/dubbo/dubbo.xsd'


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約束。把約束加進來就不報錯了。不過不加也無所謂。執行不報錯


如何加xsd約束?

參看這個博文。

http://blog.csdn.net/wzygis/article/details/51381905


最後記得重新整理工程。maven的話可能還需要maven update