出錯原因: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"/>
来源:CSDN
作者:Annie_ya
链接:https://blog.csdn.net/Annie_ya/article/details/104669855