title: Is it possible to have a default application.yml in a custom Spring boot starter?
body: <p>I am facing an issue with my custom spring boot starter and a spring boot app consumer that uses as a dependency. I have in both an application.yml but it seems that the configuration I am looking for it is only pressent if it is defined in the consumer.</p>
  
  <p>My config in the starter is like this:</p>
  
  <pre><code>@Getter
  @Setter
  @Configuration
  @ConfigurationProperties(prefix = "security")
  public class StarterSecurityConfig {
      private boolean jwtEnabled;
      private String[] unsecuredPaths;
      private String[] securedPaths;
  }
  </code></pre>
  
  <p>And I have this bean defined in the AutoConfiguration class:</p>
  
  <pre><code>@Bean
  public StarterSecurityConfig starterSecurityConfig() {
      return new StarterSecurityConfig();
  }
  </code></pre>
  
  <p>It is perfectly retrieved by the consumer which has this application.yml and another variables:</p>
  
  <pre><code>    security:
    jwt-enabled: true
    secured-paths:
      - /user/**
    unsecured-paths:
      - /**
  </code></pre>
  
  <p>But if I remove that from the consumer and I put it in the application.yml of the starter, the starter beans does not have these properties when creating them.</p>
  
  <p>Maybe am I missing something?</p>