title: env.getProperty not working Spring PropertyPlaceholderConfigurer
body: <p>I am loading properties file using spring </p>
  
  <pre><code>  &lt;bean id="appProperties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt;
           &lt;property name="locations" value="classpath:/sample.properties" /&gt;
            &lt;property name="ignoreUnresolvablePlaceholders" value="true"/&gt;
      &lt;/bean&gt;
  </code></pre>
  
  <p>when i am getting property value using </p>
  
  <p><code>@Value("${testkey}")</code> its working fine.</p>
  
  <p>but when i am trying to get using env</p>
  
  <pre><code>@Resource
   private Environment environment;
  
  environment.getProperty("testkey") // returning null
  </code></pre>