title: Spring import all configuration files in a directory into another configuration file without specifying the profiles / filenames explicitly
body: <p>Is there a way to import all configuration files in a directory without having to explicitly specify their profiles / filenames one by one?</p>
  <p>I thought of using <code>spring.config.import</code> but it doesn't seem to support specifying a directory or pattern to dynamically import whatever configuration files are contained within the directory.</p>
  <p>For example:</p>
  <p>I have the main config <code>application.yml</code> and children config in the <code>config/</code> directory, which contains <code>application-test1.yml</code>, <code>application-testN.yml</code> and so on.  I want to automatically load all the config files under the directory without specifying them explicitly in <code>application.yml</code>.</p>
  <p>I tried these below, but they don't work.</p>
  <pre><code>spring
      config
          import: classpath:config/
  
  spring
      config
          file: file:config/*/
  </code></pre>