In the process of configuring the dubbo service, it is often encountered that although the program can run, there are a bunch of red crosses in the configuration file. Although it does not affect the function, it is really disgusting.
The error message is as follows:
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>.
or
File validation is strict, but no definition of <dubbo:reference, etc. is found.
Without further ado, go straight to the solution:
Eclipse select windows-->preference-->xml->xmlcatalog-->add->catalog entry -->file system, after selecting the template file, modify the key value to " http://code.alibabatech.com/schema/ dubbo/dubbo.xsd ”, then right-click “validate” in the eclipse file where the error is reported.