Annotation Type ConditionalOnNotWebApplication
@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented @Conditional(org.springframework.boot.autoconfigure.condition.OnWebApplicationCondition.class) public @interface ConditionalOnNotWebApplication
Conditional
that only matches when the application context is a not a web application context.