title: @Value is not injected
body: <p>I'm trying to inject value from properties file into a spring configuration class as follows:</p>
  
  <pre><code>@Configuration
  @EnableWebMvc
  public class ImagesContext {
     @Autowired
     @Value("${some.property.com}")
     private String property;
  
     @Bean
     public MyClass getMyClass() {
        return new MyClass(property);
     }
  }
  </code></pre>
  
  <p>But the property is not injected correctly. Instead, when I debug, I see that the <code>property</code> string contains <code>${some.property.com}</code> and not the string value itself.</p>