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
- 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>.
虽然不影响运行,但看着毕竟不爽
处理办法:
1、搜索本地项目的maven依赖库,找到dobbo.jar。
2、解压dobbo-2.5.3.jar,在META-INF下面找到dubbo.xsd文件。
3、打开eclipse, window-->xml-->xmlCatalog-->add-->FileSystem,引入dubbo.xsd文件
4、修改key值http://code.alibabatech.com/schema/dubbo/dubbo.xsd
5、对着xml文件validate后红叉消失。