title: How to load all .yml files from resources directory at the time of application startup in spring?
body: <p>I have 2-3 .yml files in resources directory in a spring application.
  I want to load all these files at the application startup automatically.</p>
  
  <p>I tried below code but did not work. </p>
  
  <pre><code>ConfigurableApplicationContext applicationContext = new SpringApplicationBuilder(YamlLoadApplication.class)
                  .properties("spring.config.name:applicationTest,CountriesData",
                          "spring.config.location:src/main/resources/")
                  .build().run(args);
  
          ConfigurableEnvironment environment = applicationContext.getEnvironment();
          MutablePropertySources sources = environment.getPropertySources();
  </code></pre>
  
  <p>Please help me to solve this. What is the best way to achive this? I would be using all these yml files values throughout the application.</p>
  
  <p>Thanks </p>