2.5.3版本看不到配置值?

Can't take configuration value in view at 2.5.3 version?

@play.Play.application.configuration.getString("application.host")

如何在 2.5.3 版本中查看配置值?

请注意,视图无处不在。所以我正在搜索解决方案而不在所有控制器中设置参数。

import play.api.Configuration

val config = Configuration.load()
val mode = config.getString("application.host", defaultValueString)

文档是https://www.playframework.com/documentation/2.5.3/api/scala/index.html#play.api.Configuration

祝你好运