From f083a72c83639da98af762afa32072abf08e3d24 Mon Sep 17 00:00:00 2001 From: Ryan Baxter <524254+ryanjbaxter@users.noreply.github.com> Date: Wed, 28 Aug 2024 15:27:14 -0700 Subject: [PATCH] Add a note that Java Records annotated with @ConfigurationProperties can't be refreshed. Fixes #1372 --- .../spring-cloud-commons/application-context-services.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/modules/ROOT/pages/spring-cloud-commons/application-context-services.adoc b/docs/modules/ROOT/pages/spring-cloud-commons/application-context-services.adoc index a20c40da..151cff39 100644 --- a/docs/modules/ROOT/pages/spring-cloud-commons/application-context-services.adoc +++ b/docs/modules/ROOT/pages/spring-cloud-commons/application-context-services.adoc @@ -173,6 +173,8 @@ 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`. +NOTE: Java Records annotated with `@ConfigurationProperties` cannot be refreshed. + [[refresh-scope]] == Refresh Scope