错误编译拦截
问题描述:
试图使用拦截比如当我的应用程序没有编译...错误编译拦截
package controllers;
import play.mvc.*;
public class Secure extends Controller {
@Before
static void checkAuthenticated(){
...
}
...
}
唯一的例外是“错误:无法找到符号@Before”。我试图清理,从控制台重建Eclipse项目和重新排序Java构建路径
答
All @Before, @After, @Catch, @Finally have been merged into a single simpler concept:
http://www.playframework.com/documentation/2.0/JavaActionsComposition
要了解更多信息,结账zentasks你的游戏里面安装的例子(样本)的文件夹,它实现Security.Authenticator
哦该死...我在看1.0文档。谢谢 – 2013-02-15 23:17:17