本文主要是介绍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>
这篇关于can't find referenced pointcut annotationPointCut的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!