scalaplayframeworkplayframework-2.2typesafe-stacktypesafe-config

How do I print all current Play2 configs?


I have val config = Play.current.configuration and I want to get a Map[String, String] of all current configs key and their string values. How can I do that?


Solution

  • config.entrySet.toMap.mapValues(_.render)