title: Autowire the configuration class into another configuration class field
body: <p>I have a configuration class RetryConfig , which uses configuration properties of class RetryConfiguration.</p>
  <p>In class RetryConfig , I am creating one object SimpleRetryPolicy  field, which needs one property of class RetryConfiguration as below:</p>
  <p>Ex:</p>
  <pre><code>public class RetryConfig {
  
  //private static final int MAX_RETRY_ATTEMPTS = 5;
  
  @Autowired
  RetryConfiguration retryConfiguration;
  
  private final SimpleRetryPolicy simpleRetryPolicy = new SimpleRetryPolicy(retryConfiguration.getcount()); }
  </code></pre>
  <p>But with the above code, it fails.</p>
  <p>whats i am missing here?</p>