0 can't find referenced pointcut declarePointExpress

今天在用SpringAOP 的 @pointCut 的时候报错

Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ArithmeticCalculatorImpl' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is

java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut performance

 

上网搜了一下,发现是JDK不匹配。

  我原来用的JDK1.7匹配的是aspectjrt.1.6和aspectjweaver.1.6,因此会报错。

 

  如果要使用AspectJ完成注解切面需要注意下面的JDK与AspectJ的匹配:

  JDK1.6 —— aspectJ1.6

  JDK1.7 —— aspectJ1.7.3+

  JDK 1.8 的 还没有找到适用的

posted on 2017-08-15 22:48  哆啦任意门  阅读(282)  评论(0编辑  收藏  举报

导航