我正在尝试在Scala中使用TypeSafe来获取配置文件中的列表,例如something.conf http://typesafehub.github.io/config/latest/api/index.html
在something.conf中我设置参数:
mylist=["AA","BB"]
Run Code Online (Sandbox Code Playgroud)
在我的Scala代码中我做了:
val myList = modifyConfig.getStringList("mylist")
Run Code Online (Sandbox Code Playgroud)
简单的配置参数工作正常,但有人可以给我一个如何提取列表的例子吗?
干杯!