title: Spring boot @Value not working for static field
body: <p>I am trying to get value from a property file on spring boot. 
  <strong>application.properties</strong> file is under resources folder, and its content;</p>
  
  <pre><code>TEST=someText
  </code></pre>
  
  <p>And the code is;</p>
  
  <pre><code>import org.springframework.beans.factory.annotation.Value;
  import org.springframework.boot.autoconfigure.SpringBootApplication;
  import org.springframework.context.annotation.PropertySource;
  
  @SpringBootApplication
  @PropertySource("classpath:application.properties")
  
  public class Bb8Application {
  
  
      @Value("${TEST}")
      static String someString;
  
      public static void main(String[] args) {
  
          System.out.print(someString);
  
      }
  
  }
  </code></pre>
  
  <p>I get NULL as a result instead of "someText". Is there something that I am missing?</p>