play的过滤类怎么实现继承问题
时间:2014-10-27 22:45:26
收藏:0
阅读:260
原文:
Example:
public class Secure extends Controller {
@Before
static void checkAuthenticated() {
if(!session.containsKey("user")) {
unAuthorized();
}
}
}
And on another Controller:
@With(Secure.class)
public class Admin extends Controller {
…
}
评论(0)