title: Override value in application.properties
body: <p>I write desktop application which connected with <code>API client</code> and this <code>API</code> forces setting URL value </p>
  
  <pre><code>@Value("${ig.api.domain.URL}")
  private String igApiDomainURL;
  </code></pre>
  
  <p>Setting <code>igApiDomainURL</code> showing above is in <code>AbstractService.class</code> of client api libraries so I can't change it.</p>
  
  <p>I create <code>BeanConfiguration.java</code> which load <code>application.properties</code> where the <code>ig.api.domain.URL</code> was defined.</p>
  
  <p><code>BeanConfiguration.java</code> looks like this:</p>
  
  <pre><code>@Configuration
  @PropertySource("application.properties")
  public class BeanConfiguration {
  
      @Bean
      public static PropertySourcesPlaceholderConfigurer placeholderConfigurer() {
          return new PropertySourcesPlaceholderConfigurer();
      }
  
      @Bean
      public HttpClient httpClient() {
          return HttpClients.createDefault();
      }
  }
  </code></pre>
  
  <p>... and <code>application.properties</code> contains:</p>
  
  <pre><code>ig.api.domain.URL=https://demo-api.ig.com/gateway/deal
  </code></pre>
  
  <p>I want change URL address defined in <code>application.properties</code> during riunning application (change the URL address depending on the type of account - DEMO/LIVE). </p>
  
  <p>Any suggestions ?</p>