title: Spring multiple @ConfigurationProperties with same class
body: <p>I have a class of the sort :</p>
  
  <pre><code>@Data
  @Component
  @ConfigurationProperties("a.config.props")
  public class ClientProperties {
  
      private String hostname;
      private String port;
      private String baseUrl;
      private String endpoint;
  }
  </code></pre>
  
  <p>I have tens of property contexts but for 1 line i have to repeat the whole class. Is there a simple and elegant way to have one class and somehow pass the property context dynamically (maybe an array or something of the sort) so that i use the same class.</p>