欢迎来到天天文库
浏览记录
ID:36194020
大小:15.41 KB
页数:8页
时间:2019-05-07
《mvcannotationdriven错误解决方案》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、mvc:annotation-driven错误解决方案原因:以下内容除了有之外,还要保证版本一直(此处之所以出现问题是因为spring-mvc版本设置成了4.0)xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework
2、.org/schema/tx/spring-tx-3.0.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.sprin
3、gframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd">SEVERE:Exceptionsendingcontextinitializedeventtolistenerinstanceofclassorg.springframework
4、.web.context.ContextLoaderListenerorg.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:Line22inXMLdocumentfromfile[/home/cipherTomcat/webapps/cipher/WEB-INF/classes/applicationContext.xml]isinvalid;nestedexceptionisorg.xml.sax.SAXParseException:cvc-complex-type.2.4.c:Thematc
5、hingwildcardisstrict,butnodeclarationcanbefoundforelement'mvc:annotation-driven'. atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396) atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(
6、XmlBeanDefinitionReader.java:334) atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
7、 atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209) atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinit
此文档下载收益归作者所有