title: Is it possible to create multiple beans depending on prefix in application.properties in springboot
body: <p>I have the following in my application.properties in my springboot application (1.5.4.RELEASE)</p>
  
  <pre><code>my.prefix.one.id=id01
  my.prefix.one.name=one
  
  my.prefix.two.id=id02
  my.prefix.two.name=two
  </code></pre>
  
  <p>And a class like the following</p>
  
  <pre><code>public class MyClass{
   private String id;
   private String name;
   //getters and setters
  }
  </code></pre>
  
  <p>If I use @ConfigurationProperties(prefix="my.prefix.one") then I get a MyClass bean with id field "id01".</p>
  
  <p>Is there a way to indicate springboot to scan scan for all the properties with prefix "my.prefix" and create multiple beans. In this case two beans - bean with id field "id01" and bean with id field "id02" ?</p>