如何在Play的application.conf中处理很长的字符串?假设我有:
my.value.param = "Very very very very long line"
我希望像
那样拆分长线my.value.param = "Very very very "
+ "very long line"
如何使用HOCON格式执行此操作?感谢
答案 0 :(得分:3)
从documentation来看似乎不可能。你可以稍微解决它,如下所示:
my.value.param = ${my.value.param1} ${my.value.param2}
my.value.param1="Very very very"
my.value.param2="very long line"
但这当然非常难看。我不认为打算在配置中存储长字符串。
答案 1 :(得分:2)
build.path = ${PATH}
build.path = ${build.path}":/opt/groovy-2.4.5/bin"
build.path = ${build.path}":/opt/gradle-2.9/bin"
build.path = ${build.path}":/opt/scala-2.11.7/bin"
build.path = ${build.path}":/opt/sbt-0.13.9/bin"