title: How to convert data from properties file and set to List property (with PropertyPlaceholderConfigurer)?
body: <p>I have an entity:</p>
  
  <pre><code>public class Auditorium {
      private Integer id;
      private String name;
      private Integer numberOfSeats;
      private List&lt;String&gt; vipSeats;
  
      public Auditorium(String name, Integer numberOfSeats, List&lt;String&gt; vipSeats) {
          this.name = name;
          this.numberOfSeats = numberOfSeats;
          this.vipSeats = vipSeats;
      }
  </code></pre>
  
  <p>and I want to create <code>Auditorium</code> instance from property file, like:</p>
  
  <pre><code>auditorium1.name=yellow hall
  auditorium1.number-of-seats=150
  auditorium1.vip-seats=1,2,3,4,5,6,7,8,9
  </code></pre>
  
  <p>I have few different files and I want to create different <code>Auditorium</code> beans.</p>
  
  <p>Here is snippet from <code>spring.xml</code>:</p>
  
  <pre><code>&lt;bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt;
      &lt;property name="locations"&gt;
          &lt;list&gt;
              &lt;value&gt;classpath:auditorium1.properties&lt;/value&gt;
              &lt;value&gt;classpath:auditorium2.properties&lt;/value&gt;
              &lt;value&gt;classpath:auditorium3.properties&lt;/value&gt;
          &lt;/list&gt;
      &lt;/property&gt;
      &lt;property name="ignoreResourceNotFound" value="true"/&gt;
      &lt;property name="systemPropertiesMode"&gt;
          &lt;util:constant
                  static-field="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.SYSTEM_PROPERTIES_MODE_OVERRIDE"/&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  
  &lt;util:list id="auditorium1" value-type="java.lang.String"&gt;
      &lt;value&gt;&lt;/value&gt;
  &lt;/util:list&gt;
  
  &lt;util:list&gt;
      &lt;bean class="net.lelyak.edu.entity.Auditorium"
            p:name="${auditorium1.name}" p:numberOfSeats="${auditorium1.number-of-seats}" p:vipSeats="${auditorium1.vip-seats}"/&gt;
  &lt;/util:list&gt;
  </code></pre>
  
  <p>But Iam getting an error:</p>
  
  <p><a href="https://i.stack.imgur.com/FOg61.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FOg61.png" alt="enter image description here"></a></p>
  
  <p>Because <code>No matching constructor found</code>.</p>
  
  <p>And much better will have <code>List&lt;Integer&gt; vipSeats</code>. Is it possible at this situation?</p>
  
  <p><strong><em>How to solve this trouble?</em></strong></p>