title: Dynamically change application.properties values in spring boot
body: <p>Currently i am working on a REST based project in Spring Boot. 
  I have added the api url in 'application.properties' file.</p>
  
  <p>i.e. </p>
  
  <h2>application.properties</h2>
  
  <pre><code>api-base-url=http://localhost:8080/RestServices/v1
  </code></pre>
  
  <p>And also this 'api-base-url' value access from java.</p>
  
  <p>In some situations i need to change the 'api-base-url' dynamically.
  I have change 'api-base-url' value dynamically &amp; working fine.</p>
  
  <p>But my problem is that
  when wildfly restart then the configuration will be reset to default.</p>
  
  <p>i.e
  This is my default value</p>
  
  <pre><code>api-base-url=http://localhost:8080/RestServices/v1
  </code></pre>
  
  <p>dynamically change to</p>
  
  <pre><code>api-base-url=http://10.34.2.3:8080/RestServices/v1
  </code></pre>
  
  <p>when wildfly restart then the configuration will be reset to default.
  i.e.</p>
  
  <pre><code>api-base-url=http://localhost:8080/RestServices/v1
  </code></pre>
  
  <p>Have any solution for this?</p>