问题:
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 24 in XML document from class path resource [dispatcher-servlet.xml] is invalid; nested exception is 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'.
.
原因:
在web.xml
文件中我的 声明xsi中少 context 的声明。 加上、、、两行—-(如下修改)
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.1.xsd
修改
“`