@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.
public abstract String value
true
if the
condition passes or false
if it fails.