title: accessing map property from .properties file in application context (Spring)
body: <p>In my .properties file I have something like this:</p>
  
  <pre><code>map = key1=value1, key2=value2
  </code></pre>
  
  <p>How do I access the key-value pairs in my applicationContext.xml using placeholders? I know that if the property were just a string it would simply be:</p>
  
  <pre><code>&lt;bean id="string_prop" class="java.lang.String"&gt;
      &lt;constructor-arg value="${string.prop}"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>I've also seen this:</p>
  
  <pre><code>&lt;util:map id="map_prop" key-type="java.lang.String" value-type="java.lang.String"&gt;
      &lt;entry key="key" value="value"&gt;&lt;/entry&gt;
  &lt;/util:map&gt;
  </code></pre>
  
  <p>But I'm not sure how to access the key-value pairs from the .properties file.</p>