Annotation Interface 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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Available application types. -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionThe required type of the web application.
-
Element Details
-
type
The required type of the web application.- Returns:
- the required web application type
- Default:
- ANY
-