play的过滤类怎么实现继承问题

原文:

 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 {
    
    …
}
复制代码
posted @   lycan785  阅读(148)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示