This commit is contained in:
2026-06-08 10:20:45 +08:00
parent b3c0452621
commit 9c11e484f3
5 changed files with 162 additions and 4 deletions

View File

@@ -22,7 +22,8 @@
| 后置通知After | 目标方法执行后执行(无论是否抛出异常) |
| 返回通知AfterReturning | 目标方法正常返回后执行 |
| 异常通知AfterThrowing | 目标方法抛出异常后执行 |
| 环绕通知Around | 包裹目标方法执行,可自定义目标方法执行前后的逻辑(功能最强) |
| 环绕通知Around | 包裹目标方法执行,可自定义目标方法执行前后的逻辑(功能最强) |
  [AOP API](https://docs.springjava.cn/spring-framework/reference/core/aop-api.html)
# 二、原理
  Spring AOP 基于动态代理实现,分为两种方式: