Skip to content

Commit 44619a9

Browse files
committed
Merge branch '3.1.x' into 3.2.x
Closes gh-40843
2 parents dda74ca + f5f02d6 commit 44619a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/external-config.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ include::code:MyProperties[]
725725
In this setup, the presence of a single parameterized constructor implies that constructor binding should be used.
726726
This means that the binder will find a constructor with the parameters that you wish to have bound.
727727
If your class has multiple constructors, the `@ConstructorBinding` annotation can be used to specify which constructor to use for constructor binding.
728-
To opt out of constructor binding for a class with a single parameterized constructor, the constructor must be annotated with `@Autowired`.
728+
To opt out of constructor binding for a class with a single parameterized constructor, the constructor must be annotated with `@Autowired` or made `private`.
729729
Constructor binding can be used with records.
730730
Unless your record has multiple constructors, there is no need to use `@ConstructorBinding`.
731731

0 commit comments

Comments
 (0)