首页 > 编程语言 > 详细

java错误-The prefix "aop" for element "aop:aspectj-autoproxy" is not bound.

时间:2015-08-31 15:20:41      阅读:439      评论:0      收藏:0      [点我收藏+]

配置springmvc的aop时出错:

当我向配置文件中添加:<aop:aspectj-autoproxy proxy-target-class="true"/> 时出错:

The prefix "aop" for element "aop:aspectj-autoproxy" is not bound.

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 16 in 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 not bound.

解决方法:

添加这些有关AOP的配置:

添加后如下面所示:

spring配置文件详解

http://blog.csdn.net/zzjjiandan/article/details/22922847

版权声明:本文为博主原创文章,未经博主允许不得转载。

java错误-The prefix "aop" for element "aop:aspectj-autoproxy" is not bound.

原文:http://blog.csdn.net/u013147600/article/details/48133051

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!