title: Spring Boot @ConfigurationProperties - Change property key
body: <p>I have an interesting use case where the field name that is used in a class annotated with <code>@ConfigurationProperties</code> should be different from the corresponding key used in the (yaml) configuration file:</p>
  
  <pre><code>@ConfigurationProperties("foo")
  class ConfProps {
  
      private List&lt;SomePojo&gt; bar = new ArrayList&lt;&gt;();
  
      // getter, setter
  
  }
  </code></pre>
  
  <p>This will "look out for" <code>foo.bar</code>. Is it possible to map the field <code>bar</code> to a different property key?</p>
  
  <p>I read the <a href="https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html" rel="noreferrer">the docs</a> and some related articles, but nothing ...</p>
  
  <p>To me it seems that either it's because it is absolutely trivial or this is some kind of non-goal.</p>
  
  <p>Thanks in advance!</p>