import spray.http._
import spray.client.pipelining._
import akka.actor.ActorSystem
import com.typesafe.config._
val config = ConfigFactory.load()
.withValue("akka.loglevel", ConfigValueFactory.fromAnyRef("OFF"))
.withValue("akka.stdout-loglevel", ConfigValueFactory.fromAnyRef("OFF"))
implicit val system = ActorSystem("AlwaysNameYourSystem", config)
import system.dispatcher // execution context for futures
// ... here goes the rest of example code
Run Code Online (Sandbox Code Playgroud)
这里做了什么
ActorSystem使用显式配置构建(此处为docs).此时,您不应在系统启动和任何喷涂通知期间看到任何消息
| 归档时间: |
|
| 查看次数: |
1536 次 |
| 最近记录: |