title: Java Spring Boot: Reload config without spring cloud config server
body: <p>I am trying to reload configuration of my application during runtime. The configuration is in a yaml file and the binding with <code>@ConfigurationProperties</code> works as expected. Next thing is. I want to reload the config when the yaml has changed. Or rather I am checking with <code>@Scheduled</code> whether the file has changed.</p>
  
  <p>I would like to avoid running a second server for having my <code>Environment</code> update. The two questions I have:</p>
  
  <ol>
  <li>How do I update the environment, <code>ConfigurableEnvironment</code> maybe?</li>
  <li>How do I propagate these?</li>
  </ol>
  
  <p>Spring cloud config documentation states:</p>
  
  <blockquote>
    <p>The <code>EnvironmentChangeEvent</code> covers a large class of refresh use cases, as long as you can actually make a change to the <code>Environment</code> and publish the event (those APIs are public and part of core Spring)</p>
  </blockquote>
  
  <p>So publishing the Event is working, but I do not get on how to actually update the properties.</p>