aop对应的步骤定义

aop对应的方法定义

aop:around

public void doAround(ProceedingJoinPoint joinPoint)

 

aop:before和aop:after

public void before(JoinPoint joinPoint)

 

<aop:after-throwing pointcut="" method="afterThrowing" throwing="ex"/>

throwing属性如果有配置,那么方法afterThrowing定义如下

public void afterThrowing(JoinPoint joinPoint, Exception ex)