title: Inject array of strings to a bean in Spring
body: <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://www.springframework.org/schema/beans http://            www.springframework.org/schema/beans/spring-beans.xsd"&gt;
  
     &lt;bean id="test" class="com.Test"&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;/list&gt;
          &lt;/constructor-arg&gt;
      &lt;/bean&gt;
  &lt;/beans&gt;
  </code></pre>
  
  <p>This is my current XML.
  If only <code>Test</code> took a List -  everything would be fine.</p>
  
  <p>The problem is that <code>Test</code> takes an array of strings.</p>
  
  <p>How to do it in Spring?</p>