@Retention(value=RUNTIME) @Target(value={TYPE,METHOD}) public @interface ConditionalOnProperty
Conditional
that only matches when the specified properties are defined in
Environment
and not "false".Modifier and Type | Required Element and Description |
---|---|
String[] |
value
One or more properties that must be present.
|
Modifier and Type | Optional Element and Description |
---|---|
String |
prefix
A prefix that should be applied to each property.
|
boolean |
relaxedNames
If relaxed names should be checked.
|
public abstract String[] value
public abstract String prefix
public abstract boolean relaxedNames
true
.Copyright © 2015 Pivotal Software, Inc.. All rights reserved.