Global.scala 内にいくつかのコードを追加し、application.conf application.global=Global
object Global extends WithFilters(new GzipFilter()) with GlobalSettings {
override def onStart(app: Application) {
Logger.info("Application started.")
}
override def onStop(app: Application) {
Logger.info("Application shutdown...")
}
}
conole で 3 回実行するのはなぜですか?
[info] application - Application started.
[info] application - Application started.
[info] application - Application started.
[info] wobo - Application started (Dev)
[WARN] [10/21/2013 15:54:50.591] [New I/O worker #1] [EventStream(akka://play)]akka.event-handlers] config is deprecated, use [akka.loggers]
[info] application - Application shutdown...
[info] application - Application shutdown...
[info] application - Application shutdown...