An error occurred while configuring SPRINGMVC AOP:
Error when I add:<aop:aspectj-autoproxy proxy-target-class= "true"/> to the configuration file:
The prefix "AOP" for Element "Aop:aspectj-autoproxy" was not bound.
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:Line. XML document from class path Resource [springmvc.xml] is invalid; Nested exception is org.xml.sax.SAXParseException: the prefix ' AOP ' for element ' Aop:aspectj-autoproxy ' is n OT bound.
Workaround:
Add these configurations about AOP: xmlns:aop= "HTTP://WWW.SPRINGFRAMEWORK.ORG/SCHEMA/AOP" and
Http://www.springframework.org/schema/aop
Http://www.springframework.org/schema/aop/spring-aop-3.0.xsd "
Add the following as follows: <beans xmlns= "Http://www.springframework.org/schema/beans"
Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"
xmlns:p= "http://www.springframework.org/schema/p"
xmlns:context= "Http://www.springframework.org/schema/context"
Xmlns:mvc= "Http://www.springframework.org/schema/mvc"
xmlns:aop= "HTTP://WWW.SPRINGFRAMEWORK.ORG/SCHEMA/AOP"
Xsi:schemalocation= "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/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-3.0.xsd">
A detailed description of the spring configuration file :http://blog.csdn.net/zzjjiandan/article/details/22922847
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Java error-the prefix "AOP" for Element "Aop:aspectj-autoproxy" was not bound.