我需要为我的 Play 2.1-snapshot 使用 Akka 2.1(因为 2.1 已转换为 scala.concurrent.Future 而不是 Akka 的旧 Future,所以我认为我需要使用 Akka 2.1 中的 akka.pattern.Patterns.ask反而)。但是,Play 2.1-snapshot 默认配置为使用 2.0.2:
+-------------------------------------------------------------------+---------------------------------------------------------+---------------------------------------------+
| com.typesafe.akka:akka-actor:2.0.2 | com.github.scala-incubator.io:scala-io-core_2.9.2:0.4.1 | As akka-actor-2.0.2.jar |
| | com.typesafe.akka:akka-slf4j:2.0.2 | |
| | play:play_2.9.2:2.1-SNAPSHOT | |
| | play:akka-sip14-adapters_2.9.2:2.1-SNAPSHOT | |
+-------------------------------------------------------------------+---------------------------------------------------------+---------------------------------------------+
在 Play/project/Build.scala
"com.typesafe.akka" % (if(experimental) "akka- actor_2.10.0-M7" else "akka-actor" ) % (if(experimental) "2.1-M2" else "2.0.2"),
"com.typesafe.akka" % (if(experimental) "akka- slf4j_2.10.0-M7" else "akka-slf4j" ) % (if(experimental) "2.1-M2" else "2.0.2"),
如何为 Play 2.1 开启实验性功能?
谢谢