@Retention(value=RUNTIME)
@Target(value={TYPE,METHOD})
@Documented
@Conditional(value=org.springframework.boot.autoconfigure.condition.OnExpressionCondition.class)
public @interface ConditionalOnExpression
Referencing a bean in the expression will cause that bean to be initialized very early in context refresh processing. As a result, the bean won't be eligible for post-processing (such as configuration properties binding) and its state may be incomplete.
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
value
The SpEL expression to evaluate.
|