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

猜你喜欢

转载自blog.csdn.net/qq_31204567/article/details/78166062
今日推荐