Question

J'ai val config = Play.current.configuration et je veux obtenir un Map[String, String] de toutes les clés de configuration actuelles et de leurs valeurs de chaîne.Comment puis je faire ça?

Était-ce utile?

La solution

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top