title: How to map configuration objects to java object
body: <p>I have a spring boot application which is using a spring cloud config. 
  How can i map a configuration element with some java object. </p>
  
  <p>My config is something like this:</p>
  
  <pre><code>clients:
  - id         : 1
    name: client 1
    groups    : [a,b]
  
  - id         : 2
    name: client 2
    groups    : [a]
  </code></pre>
  
  <p>And my java object is:</p>
  
  <pre><code>public class ClientInfo {
    private String clientId;
    private List&lt;String&gt; profiles;
  
    public ClientInfo(String clientId, List&lt;String&gt; pips) {
      this.clientId = clientId;
      this.profiles = pips;
    }
    public String getClientId() {
      return clientId;
    }
  
    public void setClientId(String clientId) {
      this.clientId = clientId;
    }
  
    public List&lt;String&gt; getProfiles() {
      return profiles;
    }
  
    public void setProfiles(List&lt;String&gt; profiles) {
      this.profiles = profiles;
    }
  }
  </code></pre>
  
  <p>I want to map my configuration with List</p>