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


版权声明:本文为qq_31204567原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。