title: Reading Property from a file using PropertySourcesPlaceholderConfigurer inside a method of a spring managed bean
body: <p>I am using below code to read a file, i can read the values defined in the <code>env.properties</code> using the <code>@Value</code> annotation ( Injection ). </p>
  
  <p>Is there any way i can get these values inside a method  without  using <code>@value</code> ( Injection)?</p>
  
  <pre><code>&lt;bean class="org.springframework.context.support.PropertySourcesPlaceholderConfigurer"&gt;
            &lt;property name="locations"&gt;
              &lt;list&gt;
                  &lt;value&gt;classpath:env.properties&lt;/value&gt;
  
              &lt;/list&gt;
            &lt;/property&gt;
            &lt;property name="ignoreUnresolvablePlaceholders" value="true" /&gt;
            &lt;property name="ignoreResourceNotFound" value="true" /&gt;
    &lt;/bean&gt;
  </code></pre>