Using two yaml files for configuration properties
<p>We are using a spring boot application, where properties are loaded from  <code>application.yml</code> file instead of <code>application.properties</code>, located at <code>src/main/resources/</code> which looks like below:  </p>

<pre><code>config: 
  host: localhost:8080  
  server: 123  
</code></pre>

<p>And they are being pulled in a <code>.java</code> file like this</p>

<pre><code>@ConfigurationProperties( prefix="config")  
public class ConnectionImpl implements Connection{
  @Value("${config.host}")
  private Stringhost;
} 
</code></pre>

<p>I am able to retrieve properties this way.
But we are trying to move the config properties from <code>application.yml</code> to a different <code>.yml</code> file which is located at a different location. (<code>src/main/resources/env-config</code>).<br>
Now I am not able to retrieve properties same way, i.e, using <code>@Value</code> annotation. Is there any other annotation I need to add ?</p>