我有 val config = Play.current.configuration 我想得到一个 Map[String, String] 所有当前配置键及其字符串值。我怎样才能做到这一点?

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top