Annotation Type ConditionalOnWebApplication


@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented @Conditional(org.springframework.boot.autoconfigure.condition.OnWebApplicationCondition.class) public @interface ConditionalOnWebApplication
@Conditional that matches when the application is a web application. By default, any web application will match but it can be narrowed using the type() attribute.
Since:
1.0.0
Author:
Dave Syer, Stephane Nicoll