title: dynamically generate list of beans from .yaml file in confg-server
body: <p>I'm using spring-config-server. I have it working, but Ideally, I'd like to generate a list of servers in a .yaml file that have properties.</p>
  
  <pre><code>@Resource
  private List&lt;Server&gt; servers;
  </code></pre>
  
  <p>then: </p>
  
  <pre><code>@Component
  public class Server {
  
        @Value("${server.name}")
         private String name;
  }
  </code></pre>
  
  <p>in the (applicationName).yaml file:</p>
  
  <pre><code>servers:
  -
      name: test
  -
      name: test2
  </code></pre>
  
  <p>See I want a <code>List&lt;Server&gt;</code> generated dynamically from a config. The fact that this config is on a config server shouldn't be that different from a local .yaml file right?</p>
  
  <p>Thanks for any help</p>