title: Spring Boot - Populate List/Collection from Application.properties?
body: <p>This may be a stupid questions, but is it possible to populate a list form an application.properties file in Spring Boot.  Here is a simple example:</p>
  
  <pre><code>public class SomeClass {
      @Value("${hermes.api.excluded.jwt}")
      private List&lt;String&gt; excludePatterns = new ArrayList&lt;&gt;();
      // getters/settings ....
  }
  </code></pre>
  
  <p>application.properties</p>
  
  <pre><code>// Is something along these lines possible????
  hermes.api.excluded.jwt[0]=/api/auth/
  hermes.api.excluded.jwt[1]=/api/ss/
  </code></pre>
  
  <p>I know I could explode a comma separated string, but I was just curious if there is a native spring boot way to do this?</p>