xml错误之cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:annotation-driven'.

时间:2023-03-09 18:46:57
xml错误之cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element   'mvc:annotation-driven'.

今天从svn导入项目的时候,一个xml文件里面报错:‘cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element   'mvc:annotation-driven'.’

这时候,只要在xml文件xsi:schemaLocation这个下面加上:http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd

问题就解决了