title: Loading Map<String List<String>> from properties file in spring
body: <p>I'm working on a spring application where I need to get a Map from the property file.
  The sample Java code is</p>
  
  <pre><code>public static final Map&lt;String, List&lt;String&gt;&gt; txn = Collections.unmodifiableMap(new HashMap&lt;String, List&lt;String&gt;&gt;(){{
      put("DIV",Arrays.asList("AA","CD","DD","EF"));
      put("TFER", Arrays.asList("J","TE","EF","RE"));
      put("PPO", Arrays.asList("PPIN","PPOUT"));
  }});
  </code></pre>
  
  <p>Instead, the map <strong>txn</strong> needs to be mapped with values from the properties file. The property file looks like this</p>
  
  <pre><code>txn.type=DIV,TFER,PPO
  DIV.values=AA,CD,DD,EF
  TFER.values=J,TE,EF,RE
  PPO.values=PPIN,PPOUT
  </code></pre>
  
  <p>I need the java program to get the values into the Map declaration from the properties file.</p>