Mention @ConditionalOnBooleanProperty in reference document

See gh-43827

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
This commit is contained in:
Yanming Zhou 2025-01-15 10:16:59 +08:00 committed by Moritz Halbritter
parent 6c476a2b92
commit 555b0a6ea4
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ Providing as much type information as possible in javadoc:org.springframework.co
The javadoc:org.springframework.boot.autoconfigure.condition.ConditionalOnProperty[format=annotation] annotation lets configuration be included based on a Spring Environment property.
Use the `prefix` and `name` attributes to specify the property that should be checked.
By default, any property that exists and is not equal to `false` is matched.
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.
You can also create more advanced checks by using the `havingValue` and `matchIfMissing` attributes.
If multiple names are given in the `name` attribute, all of the properties have to pass the test for the condition to match.