How I can define cluster-node in command line spring boot?
<p>I want externalize variables of my spring boot application, all variables is correctly defined by "bash app.war --spring.datasource.url='foo'"</p>

<p>But when I want define elasticsearch variable, I have this error :</p>

<blockquote>
  <p>... 3 more
  Caused by: java.lang.IllegalArgumentException: Invalid argument syntax: --spring.data.elasticsearch.cluster-name=
      at >org.springframework.core.env.SimpleCommandLineArgsParser.parse(SimpleCommandLineArgsParser.java:75)
      at org.springframework.core.env.SimpleCommandLinePropertySource.>(SimpleCommandLinePropertySource.java:87)
      at org.springframework.boot.DefaultApplicationArguments$Source.>(DefaultApplicationArguments.java:75)
      at org.springframework.boot.DefaultApplicationArguments.>>(DefaultApplicationArguments.java:41)
      at  org.springframework.boot.SpringApplication.run(SpringApplication.java:304)
      at com.metigate.DatabaseapiApp.main(DatabaseapiApp.java:65)</p>
</blockquote>

<p>I have try must syntax but i can't found ..</p>

<p>Thank you for your help</p>

<p>Tibs</p>