title: Refresh Spring Boot Auto-Configured Properties
body: <p>Can I dynamically refresh properties that are used by Spring Boot's auto configuration setup?</p>
  
  <p>For example, I have the following properties set (via cloud config) to auto configure a <code>dataSource</code>:</p>
  
  <pre><code>spring.datasource.username=user1
  spring.datasource.password=test
  </code></pre>
  
  <p>Now if I change the password prop on the config server, and hit the <code>/refresh</code> endpoint, I can see that the updated prop is retrieved but the <code>DataSource</code> is not refreshed.</p>
  
  <p>I know I can manually configure the <code>DataSource</code> beans and make sure they fall under a <code>RefreshScope</code>, but I was hoping to find a way to mark the auto configured properties as "refreshable". I have some use cases where I'd want to refresh props used by Spring Boot for other beans besides <code>DataSources</code>, and setting up some of those beans manually could be a pain.</p>