笔记:The matching wildcard is strict, but no declaration can be found for element 'task:annotation-dri

启动Spring项目报错:

2018-11-07 15:46:18
[ERROR]-[Thread: localhost-startStop-1]-[org.springframework.web.context.ContextLoader.initWebApplicationContext()]: Context initialization failed
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 29 in XML document from URL [file:/E:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp4/wtpwebapps/wProject/WEB-INF/classes/spring-core/applicationContext-core.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 29; columnNumber: 54; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'task:annotation-driven'.
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
	.....

原因:配置不对,缺少红框中的内容

笔记:The matching wildcard is strict, but no declaration can be found for element 'task:annotation-dri_第1张图片

你可能感兴趣的:(Spring)