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>aopalliancegroupId>
        <artifactId>aopallianceartifactId>
        <version>1.0version>
    dependency>
    <dependency>
        <groupId>org.aspectjgroupId>
        <artifactId>aspectjweaverartifactId>
        <version>1.8.9version>
    dependency>
    <dependency>
        <groupId>org.aspectjgroupId>
        <artifactId>aspectjrtartifactId>
        <version>1.8.9version>
    dependency>


你可能感兴趣的:(异常)