匹配通配符是严格的,但是找不到元素"context:component-scan"的声明。

5 浏览
0 Comments

匹配通配符是严格的,但是找不到元素"context:component-scan"的声明。

在尝试我的第一个Spring项目时,我遇到了以下错误:

Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:component-scan

这是applicationContext.xml的内容:



        

是什么导致了这个错误?

0