当尝试像这样实现 SecuredAction 时:
def index = SecuredAction {
Ok(views.html.index())
}
我得到一个
Overloaded method value [SecuredAction] cannot be applied to (play.api.mvc.SimpleResult[play.api.templates.Html])
当尝试像这样实现 SecuredAction 时:
def index = SecuredAction {
Ok(views.html.index())
}
我得到一个
Overloaded method value [SecuredAction] cannot be applied to (play.api.mvc.SimpleResult[play.api.templates.Html])