Skip to content

Commit 7b1e61a

Browse files
committed
Merge branch '4.0.x'
Closes gh-50873
2 parents 4c2b594 + 73e30d6 commit 7b1e61a

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
@@ -955,7 +955,7 @@ Default Values defined in configuration properties are not reflected in the java
955955
In the examples above, the `enabled` property of `MyProperties` bound to `my.service` is `false` by default.
956956

957957
However, `my.service.enabled` is not available in the `Environment` with a value of `false` if no such property is set by the user.
958-
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.
958+
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.
959959
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.
960960

961961

0 commit comments

Comments
 (0)