title: How to construct Map<String, List<String>> data structure in Spring
body: <p>I'm trying to implement this Java data structure in Spring (which I am new to):</p>
  
  <pre><code>Map&lt;String, List&lt;String&gt;&gt; 
  </code></pre>
  
  <p>I tried the below (and variants of it), but am getting the following exception:</p>
  
  <pre><code>Caused by: org.xml.sax.SAXParseException; lineNumber: XX; columnNumber: YY; cvc-complex-type.2.4.d: Invalid content was found starting with element 'util:list'. No child element is expected at this point.
  </code></pre>
  
  <p>Can someone tell me the mistake I am making? I need to be able to build out the above mentioned "Map" data structure with literal Keys (String) and List of values. I included twp complete sample "entries" (which are not working) just to show the fill-in pattern that I'm seeking to create.</p>
  
  <pre><code>    &lt;bean .... &gt;
        ...
      &lt;property name="monitoredObjects"&gt;
          &lt;util:map map-class="java.util.HashMap"&gt;
              &lt;entry key="java.lang:type=GarbageCollector,name=ConcurrentMarkSweep"&gt;
                  &lt;value&gt;
                      &lt;util:list&gt;
                          &lt;value&gt;HeapMemoryUsage&lt;/value&gt;
                          &lt;value&gt;NonHeapMemoryUsage&lt;/value&gt;
                      &lt;/util:list&gt;
                  &lt;/value&gt;
              &lt;/entry&gt;
  
              &lt;entry key="java.lang:type=FOO,name=BAR"&gt;
                  &lt;value&gt;
                      &lt;util:list&gt;
                          &lt;value&gt;YADA-YADA&lt;/value&gt;
                          &lt;value&gt;BLAH-BLAH&lt;/value&gt;
                      &lt;/util:list&gt;
                  &lt;/value&gt;
              &lt;/entry&gt;
          &lt;/util:map&gt;
      &lt;/property&gt;
        ...
      &lt;/bean&gt;
  </code></pre>
  
  <p>Thank you! =:)</p>