由下面2篇文章:
springboot教程-aop注解 @Aspect、@Before、@After、@AfterReturning、 @AfterThrowing
可知注解执行顺序:
执行成功顺序
- around 开始
- before
- 目标方法
- around 结束
- after
- afterReturning
执行抛出异常的顺序
- around 开始
- before
- 目标方法
- around 捕捉异常
- after
- afterThrowing
由下面2篇文章:
springboot教程-aop注解 @Aspect、@Before、@After、@AfterReturning、 @AfterThrowing
可知注解执行顺序: