title: org.springframework.core.env.Environment.getProperty(String) returns null
body: <p>I am trying to access some properties programmatically in a controller of a spring mvc application. I configured it by xml. I tried both <code>PropertyPlaceholderConfigurer</code> and <code>&lt;context:property-placeholder /&gt;</code></p>
  
  <p>I tried to use in the controller class(saw it in a working example but it was configured with <code>@Configuration</code>):  </p>
  
  <pre><code>@Inject  
  private Environment environment;
  </code></pre>
  
  <p>and afterwards i use: </p>
  
  <pre><code>environment.getProperty("upload.location")   
  </code></pre>
  
  <p>but i get a null value. The entry exists in the properties file(i have only one) and also using <code>${...}</code> in the xml works</p>