title: How to update configuration of SpringBoot application at runtime without reloading whole ApplicationContext
body: <p>I am trying to figure out how can I dynamically update/reload externalized configuration in a Spring Boot application without restarting the whole application.</p>
  
  <p>Most of the advice involves reloading ApplicationContext after changing the externalized configuration, but that is equivalent to restarting the entire application, so this is not really all that useful.</p>
  
  <p>Reading through SpringBoot reference documentation, I found a chapter <a href="http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-external-config-typesafe-configuration-properties" rel="noreferrer">23.7 Typesafe Configuration Properties</a>. </p>
  
  <p>If I understand it correctly, this allows to define simple POJO classes that will hold your application (externalized) configuration values as attributes.</p>
  
  <p>In theory at least, this scheme could be used to bind beans only once to the required configuration POJO and upon configuration change just update the values in the POJO. Components could easily pick up the changes next time they access getters on the POJO...</p>
  
  <p>However, I have yet not managed to figure out how to enable this type of behavior. Is there some glaringly obvious way to dynamically update components annotated with <code>@ConfigurationProperties</code> when relevant configuration has changed?</p>