title: How to configure a custom source to feed Spring Boot's @ConfigurationProperties
body: <p>I'm new to Spring Boot and reading about how @ConfigurationProperties annotation enables auto-injection of field values without @Value annotation. </p>
  
  <pre><code>@Configuration
  @ConfigurationProperties(locations = "classpath:some.properties", prefix = "something")
  public class MyConfiguration { .. }
  </code></pre>
  
  <p>I'd like to use Groovy's <code>ConfigSlurper</code> to read my property configuration. Is there a way to associate <code>@ConfigurationProperties</code> with a custom property reader, may be a custom extension of Spring class that deals with <code>ConfigSlurper</code>? Or is there a way to simulate the same behavior with a different feature?</p>