How can I override a typesafe config list value on the command line?

后端 未结 2 1740
旧巷少年郎
旧巷少年郎 2020-12-25 10:18

I have an application.conf file with a structure like the following:

poller {
  datacenters = []
}

I would like to override

相关标签:
2条回答
  • 2020-12-25 11:01

    I had the same issue some weeks ago, and finally dived into the source code to understand what's going on:

    • This feature is not implemented, it's not possible to define a list using command line argument

    Fixing it wouldn't be that hard, but someone need to take time to do it.

    0 讨论(0)
  • 2020-12-25 11:05

    An alternative syntax is implemented in version 1.0.1 for this:

    -Dpoller.datacenters.0=SJC -Dpoller.datacenters.1=IAD
    
    0 讨论(0)
提交回复
热议问题