securesocial 3.0不适用于play framework 2.3

时间:2015-03-20 17:49:10

标签: playframework-2.3 securesocial

1.当我将Play框架从2.2.6升级到2.3.8并将securesocial从2.1.4升级到3.0-M3时。我收到以下错误。如何解决?

[error] /Work/test.scala:81: not found: value SecuredAction
[error] def findStats = SecuredAction {

2.以下行曾用于工作,但现在它收到一条错误消息:trait SecureSocial采用类型参数。如何修复此问题?

object ToolbarHandler extends Controller with SecureSocial with CookieLang{

3.Request需要一个参数。如何添加参数?

 def findStats = SecuredAction {
      implicit request =>

1 个答案:

答案 0 :(得分:0)

您必须使用快照版本。 如上所述:http://securesocial.ws/guide/getting-started.html


加:

resolvers += "Sonatype OSS Snapshots" at "https://repo.typesafe.com/typesafe/snapshots/"


然后添加库依赖项:

"ws.securesocial" % "securesocial_2.11" % "master-SNAPSHOT"


希望有所帮助。