action 可以 在前面 加上 before 有没有after 之类的功能
({TypeSaveOrUpdateValidator., ApplyRecordInterceptor., KmsDeptLinkInterceptor.})
saveOrUpdate() {
    .info();
    KmsType type =  KmsTypeService..saveOrUpdate(, getSecUser());
    setAttr(ConstInit., type.getId()). setAttr(, ).setAttr(, );
    renderJson();
    .info();
}请问 在 saveOrUpdate 接口后的 事件
 项目:JFinal
 
invocation.invoke();
在这行代码之前添加的代码会在目标之前执行,在这行代码之后添加的代码会在目标之后执行,例如:
System.out.print("之前执行");
invocation.invoke();
System.out.print("之后执行");
综上,jfinal 的 Interceptor 本质上是环绕型拦截器,可以同时支持在 before 与 after 之处插入切面代码
之所以在声明拦截器时使用的是 @Before(Xxx.class) 这个注解,是因为拦截器确实是在目标被调用前就发生了作用