title: How to get command Line arguments in spring boot?
body: <pre><code>@SpringBootApplication
  public class CommandLinetoolApplication {
  
  @Value("${person.name}")
  private String name;
  
  public static void main(String... argv) {
      SpringApplication.run(CommandLinetoolApplication.class, argv);
   }  
  }
  </code></pre>
  
  <p>I am using eclipse so setting run configuration as<br>
        <strong>-Dspring-boot.run.arguments=--person.name=firstName</strong></p>
  
  <p>But when run my application,I am getting exception as 
        "Could not resolve placeholder 'person.name' in value "${person.name}"</p>