public class UserPrivilegeInterceptor implements Interceptor { @Override public void intercept(Invocation inv) { Controller controller = inv.getController(); controller.set("aa", "bb"); inv.invoke(); } }
@Before(UserPrivilegeInterceptor.class) public void userList() { Kv kv = getKv(); Grid page = service.page(getInt("pageNumber", 1), getInt("pageSize", 10), kv); renderJson(page); }
@JFinal 波总 怎么将aa的值bb 通过拦截器传给controller?