title: How to inject list by @Value?
body: <p>application.properties:</p>
  
  <pre><code>my.list=1,2,3,4
  </code></pre>
  
  <p>I want to inject this as a <code>List</code> into a <code>@Value</code> field:</p>
  
  <pre><code>@Value("${my.list}")
  List&lt;Integer&gt; list;
  </code></pre>
  
  <p>On the net I found that the following bean has to be registered for this to work:</p>
  
  <pre><code>@Bean
  public ConversionService conversionService() {
      return new DefaultConversionService();
  }
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>org.springframework.beans.TypeMismatchException: Failed to convert value of type [java.lang.String] to required type [java.util.List];
  Caused by: java.lang.NumberFormatException: For input string: "1,2,3,4"
  </code></pre>
  
  <p>Somehow <code>spring</code> is not trying to parse this as a list. Why?</p>
  
  <p>I know it is possible using spEL with <code>@Value("#{'${my.list}'.split(',')}")</code>, but I'm explicit looking in a solution without spel conversation.</p>