zoukankan      html  css  js  c++  java
  • 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 的 还没有找到适用的

  • 相关阅读:
    php Windows系统 wamp集成环境下redis的使用
    IO流文件拷贝
    IO流框架
    Map集合
    泛型
    Deque(队列)
    List接口
    Iterator接口(迭代器)
    Java中的异常详解
    Java中的正则表达式
  • 原文地址:https://www.cnblogs.com/mythdoraemon/p/7368224.html
Copyright © 2011-2022 走看看