title: @Value not resolved when using @PropertySource annotation. How to configure PropertySourcesPlaceholderConfigurer?
body: <p>I have following configuration class:</p>
  
  <pre><code>@Configuration
  @PropertySource(name = "props", value = "classpath:/app-config.properties")
  @ComponentScan("service")
  public class AppConfig {
  </code></pre>
  
  <p>and I have service with property:</p>
  
  <pre><code>@Component 
  public class SomeService {
      @Value("#{props['some.property']}") private String someProperty;
  </code></pre>
  
  <p>I receive error when I want to test the AppConfig configuration class with</p>
  
  <pre><code>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'someService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.lang.String service.SomeService.someProperty; nested exception is org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 0): Field or property 'props' cannot be found on object of type 'org.springframework.beans.factory.config.BeanExpressionContext' 
  </code></pre>
  
  <p>The issue is documented <a href="https://jira.springsource.org/browse/SPR-8539">in SPR-8539</a></p>
  
  <p>but anyway I cannot figure out how to configure <strong>PropertySourcesPlaceholderConfigurer</strong>  to get it work.</p>
  
  <h2>Edit 1</h2>
  
  <p>This approach works well with xml configuration</p>
  
  <pre><code>&lt;util:properties id="props" location="classpath:/app-config.properties" /&gt;
  </code></pre>
  
  <p>but I want to use java for configuration.</p>