How do I print all current Play2 configs?
-
24-12-2019 - |
Question
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)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow