2013-02-15 205 views
0

試圖使用攔截比如當我的應用程序沒有編譯...錯誤編譯攔截

package controllers; 

import play.mvc.*; 

public class Secure extends Controller { 

    @Before 
    static void checkAuthenticated(){ 
     ... 
    } 

    ... 

} 

唯一的例外是「錯誤:無法找到符號@Before」。我試圖清理,從控制檯重建Eclipse項目和重新排序Java構建路徑

回答

2

All @Before, @After, @Catch, @Finally have been merged into a single simpler concept:

http://www.playframework.com/documentation/2.0/JavaActionsComposition

要了解更多信息,結賬zentasks你的遊戲裏面安裝的例子(樣本)的文件夾,它實現Security.Authenticator

+0

哦該死...我在看1.0文檔。謝謝 – 2013-02-15 23:17:17