public interface Interceptor
| 限定符和类型 | 方法和说明 |
|---|---|
void |
after(InterceptorContext ctx)
如果正常执行,调用after
|
void |
before(InterceptorContext ctx) |
void |
exception(InterceptorContext ctx,
Exception ex)
如果异常,将调用exception
|
void before(InterceptorContext ctx)
void after(InterceptorContext ctx)
ctx - void exception(InterceptorContext ctx, Exception ex)
ctx - ex - Copyright © 2019. All rights reserved.