Skip to content

Commit db4b483

Browse files
committed
Merge branch '3.2.x' into 3.3.x
Closes gh-41585
2 parents d9360a0 + 9bb0c45 commit db4b483

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,8 @@ NOTE: The use of `java.util.Optional` with `@ConfigurationProperties` is not rec
770770
As such, it is not well-suited to configuration property injection.
771771
For consistency with properties of other types, if you do declare an `Optional` property and it has no value, `null` rather than an empty `Optional` will be bound.
772772

773+
TIP: To use a reserved keyword in the name of a property, such as `my.service.import`, use the `@Name` annotation on the constructor parameter.
774+
773775

774776

775777
[[features.external-config.typesafe-configuration-properties.enabling-annotated-types]]

0 commit comments

Comments
 (0)