title: How to add multiple application.properties files in spring-boot?
body: <p>I have a Spring boot application that is divided in several modules.
  The main module runs the application and has an <code>application.properties</code> file in the resources folder. I'm wondering if I can add another properties file in a submodule to separate properties that are belonging to that module and how to make this working (because it is not).</p>
  
  <pre><code>+main_module
    +src
      +main
        +java
          +my/package/Application.java
          +resources/application.properties
  +support_module
    +src
      +main
        +java
          +resources/application.properties
  </code></pre>
  
  <p>So, this is the current situation. Clearly the properties file in the module <code>support_module</code> is not read causing a <code>NoSuchBeanDefinitionException</code>, while if I put the content in the other properties file everything works fine.</p>