title: Spring application.yaml have dash in key
body: <p>I want to create @Bean ExampleProperties.java and want to automatically get key/value in application.yaml, for example:</p>
  
  <pre><code>@ConfigurationProperties("server")
  public class ExampleProperties {
      private String context-path; //this would be a mistake, cause you could not have "-" in parameter name,
  }
  </code></pre>
  
  <p>How to create a parameter equals to the key in application.yml??</p>