commit
9184448054
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012-2021 the original author or authors.
|
* Copyright 2012-2024 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -117,6 +117,9 @@ public @interface ConditionalOnProperty {
|
||||||
* <p>
|
* <p>
|
||||||
* Use the dashed notation to specify each property, that is all lower case with a "-"
|
* Use the dashed notation to specify each property, that is all lower case with a "-"
|
||||||
* to separate words (e.g. {@code my-long-property}).
|
* to separate words (e.g. {@code my-long-property}).
|
||||||
|
* <p>
|
||||||
|
* If multiple names are specified, all of the properties have to pass the test for
|
||||||
|
* the condition to match.
|
||||||
* @return the names
|
* @return the names
|
||||||
*/
|
*/
|
||||||
String[] name() default {};
|
String[] name() default {};
|
||||||
|
|
|
@ -120,6 +120,8 @@ Use the `prefix` and `name` attributes to specify the property that should be ch
|
||||||
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.
|
||||||
You can also create more advanced checks by using the `havingValue` and `matchIfMissing` attributes.
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[[features.developing-auto-configuration.condition-annotations.resource-conditions]]
|
[[features.developing-auto-configuration.condition-annotations.resource-conditions]]
|
||||||
|
|
Loading…
Reference in New Issue