You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features/developing-auto-configuration.adoc
+2-1
Original file line number
Diff line number
Diff line change
@@ -138,7 +138,8 @@ Providing as much type information as possible in javadoc:org.springframework.co
138
138
The javadoc:org.springframework.boot.autoconfigure.condition.ConditionalOnProperty[format=annotation] annotation lets configuration be included based on a Spring Environment property.
139
139
Use the `prefix` and `name` attributes to specify the property that should be checked.
140
140
By default, any property that exists and is not equal to `false` is matched.
141
-
You can also create more advanced checks by using the `havingValue` and `matchIfMissing` attributes.
141
+
There is also a dedicated javadoc:org.springframework.boot.autoconfigure.condition.ConditionalOnBooleanProperty[format=annotation] annotation specifically made for boolean properties.
142
+
With both annotations you can also create more advanced checks by using the `havingValue` and `matchIfMissing` attributes.
142
143
143
144
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