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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top