Skip to content

Commit 8c51f07

Browse files
committed
Polish note about @ConfigurationProperties can't be refreshed.
Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
1 parent 7488608 commit 8c51f07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ spring.cloud.refresh.never-reset-nested-types=com.example.MyClient,com.acme.sdk.
185185
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`.
186186
To address those concerns, we have `@RefreshScope`.
187187

188-
NOTE: Java Records annotated with `@ConfigurationProperties` cannot be refreshed.
188+
NOTE: Objects using constructor binding including Java Records annotated with `@ConfigurationProperties` cannot be refreshed.
189189

190190
[[refresh-scope]]
191191
== Refresh Scope

0 commit comments

Comments
 (0)