项目导入eclipse后,xml标签报红或无网络状态标签报红
如下图情况
图一
报错内容
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.
解决方案:
第一步:找到我们爆红标签所对应的jar包。上图jar包为dubbo
解压jar包获取com和META-INF文件夹,在META-INF下找到文件dubbo.xsd,这里面包含了所有的xml下dubbo标签的规则