Spring Boot Inherit application.properties from dependency
<p>Let's say I have 5 Spring Boot Projects. All of them have a Maven dependency on a Spring Boot project No 6 with some shared/common classes. 5 independent projects have a lot of common properties assigned at each application.properties, which I'd like to abstract and move them to common project. Overall it looks like this:</p>

<pre><code>                                            Project 1 (app.properties)
Common Project (app-common.properties) &lt;--- Project 2 (app.properties)
                                            Project 3 (app.properties)...
</code></pre>

<p>Current problem is that app-common.properties is inside project1.jar/lib/common-project.jar and app-common.properties apparently do not load upon startup.</p>

<p>Is there a way to extend it from a dependency?</p>

<p>CommonProject Main class looks like this:</p>

<pre><code>@SpringBootApplication
public class CommonApplication extends SpringBootServletInitializer {

    protected static void run(SpringApplication application, String[] args) {
        application.run(args);
    }
}
</code></pre>

<p>Project1 Main class looks like this:</p>

<pre><code>public class Project1 extends CommonApplication {

    public static void main(String[] args) {
        run(new SpringApplication(Project1.class), args);
    }
}
</code></pre>