Maven项目Spring配置XML报错

<?xml version="1.0" encoding="UTF-8"?>


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 
     'cache:annotation-driven'.
    - schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/cache/
     spring-cache.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>.

这种错误是属于配置文件的验证错误,实际上并不影响项目的正常运行.

按步骤操作:
Window--> Preferences--> General--> Validation

 

 问题解决,如果其他文件验证出现错误也可以关掉其他相应的验证;

原文地址:https://www.cnblogs.com/jiftle/p/13043880.html