title: @ConfigurationProperties: Default value in bound class
body: <p>I have a config class <code>FooConfig</code>, in which i have a bound class 'Foo'.</p>
  <pre><code>@Configuration
  @ConfigurationProperties(&quot;foo&quot;)
  public class FooConfig {
  
    @Value(&quot;${foo.default.iterations}&quot;)
    private Integer iterations;
  
    private Foo foo;
  
    // getter / setter
  
  }
  </code></pre>
  <p>In my class <code>Foo</code> I want the iterations-variable set with an existing default configuration-value, when not explicitly set in the properties-file.</p>
  <pre><code>public class Foo {
  
    private String name;
  
    @Value(&quot;${foo.default.iterations}&quot;)
    private Integer iterations;
  
    // getter / setter
  
  }
  </code></pre>
  <p>My properties file</p>
  <pre class="lang-none prettyprint-override"><code>foo.default.iterations=999
  
  # if this is set this config is bound (wins) in FooConfig-class as expected
  # foo.iterations=111
  
  foo.foo.name=foo
  </code></pre>
  <p>Setting a default value in <code>FooConfig</code> works, but not in my bound class <code>Foo</code>.</p>
  <p>What am I missing here?</p>