error at ::0 can't find referenced pointcut..可能出现错误的原因

Caused by: java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut addHander                                                                        
    at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:315)                                                                             
    at org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:206)                                                
    at org.springframework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch(AspectJExpressionPointcut.java:193)                                                      
    at org.springframework.aop.aspectj.AspectJExpressionPointcut.getClassFilter(AspectJExpressionPointcut.java:174)                                                         
    at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:195)                                                                                                 
    at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:250)                                                                                                 
    at org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:284)                                                                                 
    at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findAdvisorsThatCanApply(AbstractAdvisorAutoProxyCreator.java:113)                       
    at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:85)                            
    at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:66)                    
    at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:362)                                              
    at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:325)                               
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:361) 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1344)                            
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)                               

解决办法:

出现这种错误需要检查JDK版本与易用的aspectJrt的版本,如果你的JDK是1.6那么需要下载最新的aspectj-1.6.6.jar 

或者改变你的JDK版本

你可能感兴趣的:(error at ::0 can't find referenced pointcut..可能出现错误的原因)