title: Spring 3.0.5 doesn't evaluate @Value annotation from properties
body: <p>Trying to auto-wire properties to a bean in <em>Spring 3.0.5.RELEASE</em>, I'm using:</p>
  
  <ul>
  <li><p><code>config.properties</code>:</p>
  
  <pre><code>username=myusername
  </code></pre></li>
  <li><p><code>main-components.xml</code>:</p>
  
  <pre><code>&lt;context:property-placeholder location="classpath:config.properties" /&gt;
  </code></pre></li>
  <li><p>MyClass:</p>
  
  <pre><code>@Service
  public class MyClass {
  
      @Value("${username}")
      private String username;
      ...
  }
  </code></pre></li>
  </ul>
  
  <p>As a result, username gets set to <em>literally</em> <code>"${username}"</code>, so the expression doesn't get parsed. My other auto-wired dependencies on this class get set, and Spring doesn't throw any exception. I also tried to add <code>@Autowired</code> but it didn't help.</p>
  
  <p>If I parse properties to a separate bean and then use <code>@Autowired</code> + <code>@Qualifier</code>, it works:</p>
  
  <pre><code>&lt;bean id="username" class="java.lang.String"&gt;
      &lt;constructor-arg value="${username}"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Any ideas how to use just <code>@Value</code>? Maybe I need to include some Spring dependency that I haven't? Thank you</p>