dubbo配置文件报错schema_reference.4: Failed to read schema document ...

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文件

步骤1:获取dubbo的xsd文件

找到dubbo的jar包,解压可以获取到xsd文件

步骤2.eclipse配置dubbo的xsd文件

windows->preferrence->xml->xmlcatalog 

步骤3,保存后,在xml文件右键选择validate ,ok,解决好了

猜你喜欢

转载自blog.csdn.net/qq_26922757/article/details/82828663
今日推荐