title: Spring boot property autowiring not working
body: <p>I have a Spring boot <code>2.3.3.RELEASE</code> project.</p>
  <p>Main Application class,</p>
  <pre><code>    @SpringBootApplication()
      public class TestApplication {
             ...
      }
      
      @ConfigurationProperties(prefix = &quot;test&quot;)
      public class TestProperties {
        ...
      }
      
      @Configuration
      @EnableConfigurationProperties({TestProperties.class})
      public class TestConfiguration {
      
      }
  
  @Service
  public class AmazonEmailService {
  
      private final AmazonSimpleEmailService client;
      
      @Autowired
      private TestProperties props;
  
      public AmazonEmailService() {
        props.getEmail(); // Here props is null ...
      }
  
  }
  </code></pre>
  <p>Here, <code>TestProperties</code> autowiring is <strong>null</strong> in <code>AmazonEmailService</code>. Not sure what is missing.</p>
  <p>Other Autowiring works in other classes.</p>