Skip to content

Commit 73e30d6

Browse files
committed
Merge pull request #50859 from doehyunbaek
Closes gh-50859 * gh-50859: Polish "Fix placeholder syntax in external config docs" Fix placeholder syntax in external config docs
2 parents 00fa8e0 + 2b2a644 commit 73e30d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ Default Values defined in configuration properties are not reflected in the java
859859
In the examples above, the `enabled` property of `MyProperties` bound to `my.service` is `false` by default.
860860

861861
However, `my.service.enabled` is not available in the `Environment` with a value of `false` if no such property is set by the user.
862-
Concretely, this prevents you to use `@Value(${"my.service.enabled"})` or `my.service.enabled` as a placeholder in configuration properties without explicitly providing a default.
862+
Concretely, this prevents you from using `@Value("${my.service.enabled}")` or `my.service.enabled` as a placeholder in configuration properties without explicitly providing a default.
863863
If you need to query the javadoc:org.springframework.core.env.Environment[] for that property, for instance in a javadoc:org.springframework.context.annotation.Condition[] implementation, the default needs to be provided as well.
864864

865865

0 commit comments

Comments
 (0)