Skip to content

Commit e855e04

Browse files
Merge branch '3.2.x'
Closes gh-40164
2 parents 88150c7 + f176342 commit e855e04

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
@@ -763,7 +763,7 @@ include-code::nonnull/MyProperties[tag=*]
763763
NOTE: To use constructor binding the class must be enabled using `@EnableConfigurationProperties` or configuration property scanning.
764764
You cannot use constructor binding with beans that are created by the regular Spring mechanisms (for example `@Component` beans, beans created by using `@Bean` methods or beans loaded by using `@Import`)
765765

766-
NOTE: To use constructor binding in a native image the class must be compiled with `-parameters`.
766+
NOTE: To use constructor binding the class must be compiled with `-parameters`.
767767
This will happen automatically if you use Spring Boot's Gradle plugin or if you use Maven and `spring-boot-starter-parent`.
768768

769769
NOTE: The use of `java.util.Optional` with `@ConfigurationProperties` is not recommended as it is primarily intended for use as a return type.

0 commit comments

Comments
 (0)