Similarly
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:Line in XML document from class path Resource [bean.xml] is invalid; Nested exception is org.xml.sax.SAXParseException; linenumber:52; columnnumber:58; cvc-complex-type.2.4.
C: The wildcard match is comprehensive, but the declaration of the element ' Tx:annotation-driven ' cannot be found. Seek to solve???
Solutions»
- Did the spring configuration file error? Also remember to add the following Red font section
<beans xmlns= "Http://www.springframework.org/schema/beans"
xmlns:aop= "HTTP://WWW.SPRINGFRAMEWORK.ORG/SCHEMA/AOP" xmlns:context= "Http://www.springframework.org/schema/context"
Xmlns:jee= "Http://www.springframework.org/schema/jee"xmlns:tx= "Http://www.springframework.org/schema/tx"
Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"
xsi:schemalocation= "Http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/ Spring-aop-3.0.xsd Http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/ Spring-beans-3.0.xsd Http://www.springframework.org/schema/context Http://www.springframework.org/schema/context /spring-context-3.0.xsd Http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/ Spring-jee-3.0.xsdhttp://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">
Reference:
Http://www.debugease.com/j2ee/153550.html
http://elf8848.iteye.com/blog/875830
Wildcard match is comprehensive, but cannot find the declaration of element ' mvc:resources '