dobbo xml校验红叉出错问题处理

来源:互联网 发布:贵州广电网络如何缴费 编辑:程序博客网 时间:2024/06/07 01:55
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>.


虽然不影响运行,但看着毕竟不爽

处理办法:

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后红叉消失。


0 0
原创粉丝点击