每次阅读 Spring AOP 官方文档(链接)时,我都会对 RuntimeExceptions 的建议行为感到困惑。有人会检查我对以下建议的理解是否正确吗?
@前
- Advice throws Exception = Target(未执行) Advice(已执行)
- Target throws Exception = Target (executed) Advice (executed)
@AfterReturning
- Advice throws Exception = Target (executed) Advice (executed)
- Target throws Exception = Target(已执行) Advice(未执行)
@AfterThrowing
- Advice throws Exception = Target(已执行) Advice(未执行)
- Target throws Exception = Target (executed) Advice (executed)
@后
- Advice throws Exception = Target (executed) Advice (executed)
- Target throws Exception = Target (executed) Advice (executed)
@大约
- Advice throws Exception = Target (executed) Advice (executed)
- Target throws Exception = Target (executed) Advice (执行到 point.proceed())