Skip to content

Commit

Permalink
Merge pull request #43827 from quaff
Browse files Browse the repository at this point in the history
* pr/43827:
  Polish "Mention @ConditionalOnBooleanProperty in reference document"
  Mention @ConditionalOnBooleanProperty in reference document

Closes gh-43827
  • Loading branch information
mhalbritter committed Jan 15, 2025
2 parents eef61c2 + ac330d7 commit ec64754
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ 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.
You can also create more advanced checks by using the `havingValue` and `matchIfMissing` attributes.
There is also a dedicated javadoc:org.springframework.boot.autoconfigure.condition.ConditionalOnBooleanProperty[format=annotation] annotation specifically made for boolean properties.
With both annotations 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.

Expand Down

0 comments on commit ec64754

Please sign in to comment.