2016-07-05 6 views
0

私はapplication.conf経由でロードしたい複数のカスタムモジュールがあるPlayFrameworkアプリケーションを持っています。私はこれを指定するための正確な構文は何か分かりません。私が試した:PlayFrameworkで複数のカスタムモジュールを指定するためのフォーマット

enabled += [com.somemodule, com.othermodule] 

enabled += ["com.somemodule","com.othermodule"] 

どちらも動作します。モジュールのリストを指定する形式は何ですか?

+0

なぜbuild.sbtでそれを行う(HTTPS:/ /www.playframework.com/documentation/2.5.x/SBTSubProjects)? – Kris

答えて

0

ただ、モジュールごとに行を追加します。

play.modules.enabled += "com.acme.SomeModule" 
play.modules.enabled += "com.acme.OtherModule" 

HOCONappend an array to anotherの構文を持っていますが、私はそれをお勧めしません:

play.modules.enabled = ${?play.modules.enabled} [ "com.acme.SomeModule", "com.acme.OtherModule" ] 
+0

基本的に両方のオプションが同じです。それは味の問題です。 – Leo

関連する問題