Skip to content

Commit f083a72

Browse files
committed
Add a note that Java Records annotated with @ConfigurationProperties can't be refreshed.
Fixes #1372
1 parent 9b56a8b commit f083a72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/modules/ROOT/pages/spring-cloud-commons/application-context-services.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ For instance, a `DataSource` can have its `maxPoolSize` changed at runtime (the
173173
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`.
174174
To address those concerns, we have `@RefreshScope`.
175175

176+
NOTE: Java Records annotated with `@ConfigurationProperties` cannot be refreshed.
177+
176178
[[refresh-scope]]
177179
== Refresh Scope
178180

0 commit comments

Comments
 (0)