title: spring: access properties set from <context:property-placeholder>
body: <p>I am setting properties using:</p>
  
  <pre><code>&lt;context:property-placeholder location="#{ T(System).getenv().get('DEV_PROPERTIES') ?: 'classpath:/META-INF/properties/config.properties' }"/&gt;
  </code></pre>
  
  <p>I am able to access the properties:</p>
  
  <pre><code>@Value("${hostname}")
  String hostname;`
  </code></pre>
  
  <p>This works fine.</p>
  
  <p>However, i would like to access the properties using the property map or simple just get the values in a method which can't use <code>@Value</code> variables. Is there a way i can inject the property bean set using <code>&lt;context:property-placeholder /&gt;</code>.?</p>
  
  <p>Environment doesn't have the access to properties set from the properties file, it only can read properties from system and environment properties.</p>