can't find referenced pointcut annotationPointCut

来源:互联网 发布:如何用u盘重装mac 编辑:程序博客网 时间:2024/05/29 16:21

Spring AOP报错:

 Error 
 creating bean with name 'org.springframework.context.event.internalEventListenerProcessor': 
 Initialization of bean failed; nested exception is java.lang.IllegalArgumentException:
  error at ::0 can't find referenced pointcut annotationPointCut

报错原因:springAOP依赖jar版本过低。


解决方法:更新依赖

    <dependency>        <groupId>aopalliance</groupId>        <artifactId>aopalliance</artifactId>        <version>1.0</version>    </dependency>
    <dependency>        <groupId>org.aspectj</groupId>        <artifactId>aspectjweaver</artifactId>        <version>1.8.9</version>    </dependency>
    <dependency>        <groupId>org.aspectj</groupId>        <artifactId>aspectjrt</artifactId>        <version>1.8.9</version>    </dependency>


阅读全文
0 0
原创粉丝点击