Spring error at ::0 can't find referenced pointcut myMethod异常
来源:互联网 发布:中国什么发生战争 知乎 编辑:程序博客网 时间:2024/06/05 07:25
Spring error at ::0 can’t find referenced pointcut myMethod等异常的解决
刚刚在使用声明方式的AOP编程中,遇到以下两个问题,解决方法如下:
(1)error at ::0 formal unbound in pointcut
解决方法:去掉函数通知函数中的参数,比如:将
@Before(“execution(public void com.zjw.dao.impl.UserDAOImpl.*(..))”)
error at ::0 can’t find referenced pointcut myMethod
public void beforeMethod(Method method){
System.out.println(“method before”);
}
改为
@Before(“execution(public void com.zjw.dao.impl.UserDAOImpl.*(..))”)
public void beforeMethod(){
System.out.println(“method before”);
}
(2)com\zjw\dao\Impl\UserDAOImpl.class]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error at ::0 can’t find referenced pointcut myMethod
错误原因:如果你用的JDK版本是1.6的话,而引用的aspectjrt.jar是spring-2.0中包含的jar包的情况下就会报这样的错误。
解决方法:就是下载最新的aspectjrt的jar包即可,或者使用spring3.0中的包!在这边我使用的aspectjrt.jar居然是1.1的 所以出错了 改为aspectj最新版aspectj就没问题了
- Spring error at ::0 can't find referenced pointcut myMethod等异常的解决
- Spring error at ::0 can't find referenced pointcut myMethod异常
- error at ::0 can't find referenced pointcut mymethod
- 关于注解实现Aop出现 Spring error at ::0 can't find referenced pointcut myMethod的解决
- 解决:“java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut myMethod”问题!
- java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut myMethod
- 解决:“java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut myMethod”问题!
- error at ::0 formal unbound in pointcut 以及 error at ::0 can't find referenced pointcut myMethod
- spring aop出现0 can't find referenced pointcut mymethod
- spring error at ::0 can't find referenced pointcut解决办法
- Spring AOP 异常:IllegalArgumentException: error at ::0 can't find referenced pointcut
- error at ::0 can't find referenced pointcut...解决方法
- error at ::0 can't find referenced pointcut..
- error at ::0 can't find referenced pointcut allAddMet解决方案
- error at ::0 can't find referenced pointcut...解决方法
- error at ::0 can't find referenced pointcut anyMethod
- error at ::0 can't find referenced pointcut解决办法
- aop:error at ::0 can't find referenced pointcut解决办法
- 机器学习算法(三):Adaboost算法
- 【QT5】【错误码】查找工具
- C++调用exe文件
- hdu 3234 异或(加权并查集)
- PHP CPP
- Spring error at ::0 can't find referenced pointcut myMethod异常
- jspdf + highcharts 实现导出存在highcharts图表的html页面
- 面向对象程序设计思想&继承与关键字(5.22)
- 集团信息化之路 在线销售系统及在线收款系统成功签约
- STC89C52单片机——串口发送程序2
- 第12周上机实践项目1——教师兼干部类
- lua中的table.getn()的一些注意事项
- using FFMPEG to setup HLS server on Ubuntu
- 2、类和对象-实例变量可见度