标签: scala playframework playframework-2.2 typesafe-stack typesafe-config
我有val config = Play.current.configuration,我希望获得所有当前配置密钥及其字符串值的Map[String, String]。我怎么能这样做?
val config = Play.current.configuration
Map[String, String]
答案 0 :(得分:0)
config.entrySet.toMap.mapValues(_.render)