Skip to content

Commit 555b0a6

Browse files
quaffmhalbritter
authored andcommitted
Mention @ConditionalOnBooleanProperty in reference document
See gh-43827 Signed-off-by: Yanming Zhou <[email protected]>
1 parent 6c476a2 commit 555b0a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features/developing-auto-configuration.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Providing as much type information as possible in javadoc:org.springframework.co
137137

138138
The javadoc:org.springframework.boot.autoconfigure.condition.ConditionalOnProperty[format=annotation] annotation lets configuration be included based on a Spring Environment property.
139139
Use the `prefix` and `name` attributes to specify the property that should be checked.
140-
By default, any property that exists and is not equal to `false` is matched.
140+
By default, any property that exists and is not equal to `false` is matched, please note there is a dedicated javadoc:org.springframework.boot.autoconfigure.condition.ConditionalOnBooleanProperty[format=annotation] annotation for boolean property.
141141
You can also create more advanced checks by using the `havingValue` and `matchIfMissing` attributes.
142142

143143
If multiple names are given in the `name` attribute, all of the properties have to pass the test for the condition to match.

0 commit comments

Comments
 (0)