error at ::0 can't find referenced pointcut pointCutName 错误解决方法
2014-08-17 22:10
736 查看
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire method: public final void org.mybatis.spring.support.SqlSessionDaoSupport.setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate); nested exception is java.lang.IllegalArgumentException:
error at ::0 can't find referenced pointcut pointCutName
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:599)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:92)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284)
... 65 more
Caused by: java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut pointCutName
今天在重新复习Spring AOP的时候,使用aspectJ注解来实现Spring AOP时,用下面这种方式来获得pointCut时报错了:
上网查了,发现是aspectjweaver-1.5.2.jar这个包版本太低,于是去官网http://www.eclipse.org/aspectj/downloads.php下载了个最新版的替换
下载下来的aspectj-1.8.1里有4个jar包:aspectjrt.jar、aspectjtools.jar、aspectjweaver.jar和org.aspectj.matcher.jar
其余三个我也不知道有什么用,我只替换了其中的aspectjweaver.jar就解决了我的问题~
error at ::0 can't find referenced pointcut pointCutName
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:599)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:92)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284)
... 65 more
Caused by: java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut pointCutName
今天在重新复习Spring AOP的时候,使用aspectJ注解来实现Spring AOP时,用下面这种方式来获得pointCut时报错了:
@Pointcut(value = "execution(* com.westsoft.kft.repairs.service.impl.*.*(..))") public void pointCutName() { } @Before(value = "pointCutName()") public void before(JoinPoint jp) { System.out.println("before----------" + jp.getSignature().getName()); } @After(value = "pointCutName()") public void after(JoinPoint jp) { System.out.println("after-----------" + jp.getSignature().getName()); } }
上网查了,发现是aspectjweaver-1.5.2.jar这个包版本太低,于是去官网http://www.eclipse.org/aspectj/downloads.php下载了个最新版的替换
下载下来的aspectj-1.8.1里有4个jar包:aspectjrt.jar、aspectjtools.jar、aspectjweaver.jar和org.aspectj.matcher.jar
其余三个我也不知道有什么用,我只替换了其中的aspectjweaver.jar就解决了我的问题~
相关文章推荐
- error at ::0 can't find referenced pointcut pointCutName 错误解决方法
- 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..可能出现错误的原因 (装载)
- error at ::0 can't find referenced pointcut..可能出现错误的原因
- error at ::0 can't find referenced pointcut..可能出现错误的原因
- error at ::0 can't find referenced pointcut..
- spring error at ::0 can't find referenced pointcut解决办法
- Spring 注解 AOP 出现错误::0 can't find referenced pointcut XXX 的原因
- 关于错误 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..可能出现错误的原因
- Spring_Spring常见错误_error at ::0 can't find referenced pointcut解决办法
- AspectJ 出现错误::0 can't find referenced pointcut 的解决
- 升级android sdk到5.0,创建项目错误:No resource found that matches the given name 'android:Widget...... '解决方法
- cocos2d-x发生undefined reference to `XX'错误 一劳永逸解决方法
- Can't find file: './mysql/plugin.frm' (errno: 13)[mysql数据目录迁移错位]错误解决
- Spring《注解实现aop: can't find referenced pointcut..可能出现错误的原因》