title: What is the easiest way to specify a list with values in Spring?
body: <p>Assume I'm having a large list of values aa bb cc dd ee ff gg etc., which I need to pass as a constructor in spring</p>
  
  <p>If I need to configure as string array it is easy in spring as we can just specify the values as comma separated as aa, bb, cc etc.,</p>
  
  <p>If I need to configure as list I need to do like below </p>
  
  <pre><code>&lt;bean name="myBean" class="MyClass"&gt;
      &lt;constructor-arg&gt;
          &lt;list&gt;
              &lt;value&gt;aa&lt;/value&gt;
              &lt;value&gt;bb&lt;/value&gt;
              &lt;value&gt;cc&lt;/value&gt;
              &lt;value&gt;dd&lt;/value&gt;
          &lt;/list&gt;
      &lt;/constructor-arg&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>When the number of values increased it occupies a huge lines and it looks ugly.</p>
  
  <p>Could some one please help me how we can pass large values as list in string as constructor?</p>