Skip to content

Commit 336dcab

Browse files
committed
Merge branch '3.2.x'
Closes gh-40844
2 parents 4272016 + 44619a9 commit 336dcab

File tree

1 file changed

+1
-1
lines changed
  • spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features/external-config.adoc

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

0 commit comments

Comments
 (0)