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)

扫描二维码关注公众号,回复: 353185 查看本文章

猜你喜欢

转载自strongant.iteye.com/blog/2312299
今日推荐