Annotation Type ConditionalOnWebApplication
@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented @Conditional(org.springframework.boot.autoconfigure.condition.OnWebApplicationCondition.class) public @interface ConditionalOnWebApplication
Conditionalthat matches when the application is a web application. By default, any web application will match but it can be narrowed using thetype()attribute.
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description ConditionalOnWebApplication.TypetypeThe required type of the web application.
Element Detail
type
ConditionalOnWebApplication.Type type
The required type of the web application.- Returns:
- the required web application type
- Default:
- org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication.Type.ANY