From 555b0a6ea4a602614b9b8f0f906e3284327daa59 Mon Sep 17 00:00:00 2001 From: Yanming Zhou Date: Wed, 15 Jan 2025 10:16:59 +0800 Subject: [PATCH] Mention @ConditionalOnBooleanProperty in reference document See gh-43827 Signed-off-by: Yanming Zhou --- .../reference/pages/features/developing-auto-configuration.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features/developing-auto-configuration.adoc b/spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features/developing-auto-configuration.adoc index ca82060830e..64bda5fb18c 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features/developing-auto-configuration.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features/developing-auto-configuration.adoc @@ -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.