title: How does Spring know which property file to refer to for getting the value of the variable annotated with @Value?
body: <p>What if there are multiple property files in our application and both of those files have that variable with different values set?</p>
  
  <p>We usually just inject the value as below and it somehow always manages to get the value form properties file. How?</p>
  
  <pre><code>@Configuration
  public class AppConfig {    
      @Value("${spring.datasource.url}")
      private String datasourceUrl;
  </code></pre>