title: @Value annotation not working in constructor
body: <p>I have an issue where Spring <code>@Value</code> annotation not working in the constructor.</p>
  <p>I have this <code>Email</code> class that is reading some email related configuration.</p>
  <p>In the constructor, if I put a break-point the values are empty</p>
  <p>But if I call the <code>sendEmail</code> method, there are values.</p>
  <p>The other class:</p>
  <pre><code>@Autowired
  Email sender;
  </code></pre>
  <p><code>Email</code> class:</p>
  <pre><code>@Component
  public class Email{
  
      @Value(&quot;${TO_EMAIL}&quot;)
      private String toEmail;
  
      public Email() {        
          // Here toEmail is null 
      }
  
      public void sendEmail(String subject, String body) {
          // Here toEmail has value
      }
  }
  </code></pre>