Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可以将系统属性包含到配置文件中,如文档中所述
看起来 ${?VARNAME} 只识别系统属性(通过 -D 选项传递)。
我需要能够识别环境值,特别是 - $PWD
我怎样才能在配置文件中做到这一点?
这应该已经可以了。Typesafe config 默认搜索系统属性和环境变量。