title: What is a reason of warning: Autowired annotation is not supported on static fields
body: <p>As well as I know, it is not possible to use <code>@Autowired</code> annotation for <code>static</code> fields using <code>Spring</code>. When I run my <code>JBoss</code> server, everything works well but I can see few warnings:</p>
  
  <pre><code>Autowired annotation is not supported on static fields: private static ...
  </code></pre>
  
  <p>I do not use this annotation really often (in this project I have not used it yet) but maybe some of my colleagues found it more useful. </p>
  
  <p>So, I took one of this warnings:</p>
  
  <pre><code>Autowired annotation is not supported on static fields: private static java.lang.String com.my.package.MyClass.myVariable
  </code></pre>
  
  <p>I opened this class and inside is:</p>
  
  <pre><code>@Value("${params.myvariable}")
  private static String myVariable;
      // getter
      // setter
  </code></pre>
  
  <p>I opened <code>config.xml</code>:</p>
  
  <pre><code>&lt;bean id="myid" class="com.my.package.MyClass"&gt;
      &lt;property name="myVariable" value="${params.myvariable}" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>As a last thing, I searched in <code>Eclipse</code> of <code>Autowired</code> strings in my project. Size of the result set was <strong>0</strong>.</p>
  
  <p>So my question is, what is a reason of warning:</p>
  
  <pre><code>Autowired annotation is not supported on static fields
  </code></pre>
  
  <p>in this case?</p>
  
  <p>Thank you in advance</p>