aop错误集锦-error at ::0 formal unbound in pointcut

出錯原因:aop方法参数写漏了

---aop的afterThrow 漏掉了一个参数ex绑定
 public  void  afterThrow(JoinPoint joinPoint,Exception ex)
 原:<aop:after-throwing method="afterThrow" pointcut-ref="xmlPointCut" />
 后:<aop:after-throwing method="afterThrow" pointcut-ref="xmlPointCut" throwing="ex"/>

发布了18 篇原创文章 · 获赞 1 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/Annie_ya/article/details/104669855
今日推荐