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

 

问题就解决了

posted @ 2019-01-28 14:41  迷途的小码农  阅读(807)  评论(1编辑  收藏  举报