can't find referenced pointcut annotationPointCut

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>


猜你喜欢

转载自blog.csdn.net/u010994966/article/details/78031817
今日推荐