Playframework 如何更改play.core.server.NettyServer中的ActorSystem
我正在使用NettyServer启动一个play web应用程序。我想知道是否有一种方法可以使用现有的Actor实例,并将其传递给NettyServer。这是我的密码:Playframework 如何更改play.core.server.NettyServer中的ActorSystem,playframework,playframework-2.0,Playframework,Playframework 2.0,我正在使用NettyServer启动一个play web应用程序。我想知道是否有一种方法可以使用现有的Actor实例,并将其传递给NettyServer。这是我的密码: val server = NettyServer.fromRouter(ServerConfig( port = Some(1000), mode = play.api.Mode.Dev)) { case GET(p"/index") => Action { Results.Ok(s"OK") }
val server = NettyServer.fromRouter(ServerConfig(
port = Some(1000),
mode = play.api.Mode.Dev)) {
case GET(p"/index") => Action {
Results.Ok(s"OK")
}
}