@ -166,6 +166,7 @@ For instance, a `DataSource` can have its `maxPoolSize` changed at runtime (the
@@ -166,6 +166,7 @@ For instance, a `DataSource` can have its `maxPoolSize` changed at runtime (the
Re-binding `@ConfigurationProperties` does not cover another large class of use cases, where you need more control over the refresh and where you need a change to be atomic over the whole `ApplicationContext`.
To address those concerns, we have `@RefreshScope`.
[[refresh-scope]]
=== Refresh Scope
When there is a configuration change, a Spring `@Bean` that is marked as `@RefreshScope` gets special treatment.