title: @ConfigurationProperties on fields
body: <p>When defining properties with <code>@ConfigurationProperties</code>, can I define the prefix of a specific field instead of the whole class?</p>
  
  <p>For example, let's say we have a Properties class</p>
  
  <pre><code>@ConfigurationProperties(prefix = "com.example")
  public class MyProperties {
      private String host;
      private String port;
      // Geters and setters...
  }
  </code></pre>
  
  <p>This will bind the fields <code>host</code> and <code>port</code> to <code>com.example.host</code> and <code>com.example.port</code>. Let's say I want to bind <code>port</code> to <code>com.example.something.port</code>. The way to do this is to define an Inner class <code>Something</code> and add the property <code>port</code> there. But if I need more prefixes it will become too cumbersome. I tried to add <code>@ConfigurationProperties</code> on the setter because the target of the annotation is <code>ElementType.TYPE</code> and <code>ElementType.METHOD</code>: </p>
  
  <pre><code>@ConfigurationProperties(prefix = "com.example.something.port")
  public void setPort(int port) {...}
  </code></pre>
  
  <p>But it did not work in the end. Is there another way to customise the prefix except via Inner classes?</p>