title: Spring @Value is not resolving to value from property file
body: <p>I've had this working in some other project before, I am just re-doing the same thing but for some reason it's not working. The Spring <code>@Value</code> is not reading from property file, but instead it's taking the value literally</p>
  
  <p><strong>AppConfig.java</strong></p>
  
  <pre><code>@Component
  public class AppConfig
  {
      @Value("${key.value1}")
      private String value;
  
      public String getValue()
      {
          return value;
      }
  }
  </code></pre>
  
  <p><strong>applicationContext.xml:</strong></p>
  
  <pre><code>&lt;context:component-scan
      base-package="com.test.config" /&gt;
  &lt;context:annotation-config /&gt;
  
  &lt;bean id="appConfigProperties"
      class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt;
      &lt;property name="location" value="classpath:appconfig.properties" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p><strong>appconfig.properties</strong></p>
  
  <pre><code>key.value1=test value 1
  </code></pre>
  
  <p>In my controller, where I have:</p>
  
  <pre><code>@Autowired
  private AppConfig appConfig;
  </code></pre>
  
  <p>The application starts just fine, but when I do</p>
  
  <pre><code>appConfig.getValue()
  </code></pre>
  
  <p>it returns </p>
  
  <pre><code>${key.value1}
  </code></pre>
  
  <p>It doesn't resolve to the value inside the properties file.</p>
  
  <p>Thoughts?</p>