0
何らかの方法で既存のLagomApplicationContext
を取得できますか?それを行う方法を任意のアイデアや提案Lagomアプリケーションコンテキストを取得または挿入するLagomApplicationContext
sealed trait LagomApplicationContext {
/**
* The Play application loader context.
*/
val playContext: Context
}
:合成 - 私は、プレイ設定オブジェクトにplay.api.Configuration
フォームplayContext
を使用したいですか? ExistはDIですか?
私は、この例では同じようなapplication.confからの値を使用する必要があります。 https://www.webkj.com/play-framework/play-scala-2.5-reading-config-using-di
プレイ。 api.Configurationは、クラスコンストラクタに直接注入できます。 –