Comment imprimer toutes les configurations Play2 actuelles ?
-
24-12-2019 - |
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?
La solution
config.entrySet.toMap.mapValues(_.render)
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow