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 的 还没有找到适用的

  • 相关阅读:
    生成器
    迭代器
    闭包函数
    装饰器(2)
    装饰器(1)
    名称空间与作用域(2)
    110.网络编程-mail
    109.网络编程-FTP
    108.网络编程-TCP/UDP
    107.xpath
  • 原文地址:https://www.cnblogs.com/mythdoraemon/p/7368224.html
Copyright © 2011-2022 走看看