解决:“java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut myMethod”问题!
来源:互联网 发布:sql安装进度条不动 编辑:程序博客网 时间:2024/05/16 11:54
spring运行时报java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut myMethod错误!,
解决方法:
1,版本问题。查看你的版本。我的是JDK1.7对应的jar包为aspectjweaver-1.6.6.jar及aspectjrt-1.6.6.jar,原来的版本低了
2,拼写错误。代码有错误。
/** * <aop:config> * <aop:pointcut * expression= * "execution(* cn.test.spring.aop.annonation.PersonDaoImpl.*(..))" * id="aa()"/> * </aop:config> * */@Component("myTransaction")@Aspectpublic class MyTransaction extends HibernateUtils{private Transaction transaction;@Pointcut("execution(* cn.test.spring.aop.annonation.PersonDaoImpl.*(..))")private void bb(){}//方法签名 返回值必须是void 方法的修饰符最好是private@Before("bb()")public void beginTransaction(JoinPoint joinpoint){System.out.println("beginTransaction before");this.transaction = sessionFactory.getCurrentSession().beginTransaction();System.out.println("transaction = " + transaction);System.out.println("beginTransaction after");}@AfterReturning(value="bb()",returning="val")public void commit(Object val){System.out.println(val);this.transaction.commit();}}
0 0
- 解决:“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 can't find referenced pointcut mymethod
- Spring error at ::0 can't find referenced pointcut myMethod等异常的解决
- Spring java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut ad
- java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut
- Caused by: java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut
- Caused by: java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut
- java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut
- java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut
- Caused by: java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut poin_
- Caused by: java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut
- 关于注解实现Aop出现 Spring error at ::0 can't find referenced pointcut myMethod的解决
- Spring 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 异常:IllegalArgumentException: error at ::0 can't find referenced pointcut
- spring aop 学习小插曲 IllegalArgumentException: error at ::0 can't find referenced pointcut xx
- hdu 2102 A计划bfs
- 项目管理、Bug管理软件工具:禅道,BugFree,Redmine
- 实现可以指定超时的connect
- Xcode 8 问题总汇
- HTML CSS 笔记
- 解决:“java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut myMethod”问题!
- Deep Learning——TensorFlow平台的安装
- MYSQL获取随机结果集的解决方案
- webpack
- opengl纹理贴图的模式
- Oracle Lob类型存储浅析( alter index lob索引 rebuild tablespace XX报错问题)
- WebRTC for UWP
- Mqtt for UWP
- 集合源码分析----HashMap