【发布时间】:2016-01-06 22:52:12
【问题描述】:
我想做以下事情
include file(${HOME}/.oat/db_local_dev.conf)
不幸的是,它给出了以下错误:
Caused by: com.typesafe.config.ConfigException$Parse: /Users/XXXX/src/oat3/conf/shared.local.conf: 16: expecting a quoted string inside file(), classpath(), or url(), rather than: '${'HOME'}'
https://github.com/typesafehub/config 的文档并没有说要包含的参数必须是字符串,但我想我记得在过去的某个地方读过。
那么...有什么解决方法吗?如果没有,至少有人可以解释为什么这个限制在这里吗?某种安全漏洞?这是我能想到的省略这种有用功能的唯一原因。
谢谢。
【问题讨论】:
标签: typesafe-config