@Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Documented @Conditional(value=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.Modifier and Type | Optional Element and Description |
---|---|
ConditionalOnWebApplication.Type |
type
The required type of the web application.
|
public abstract ConditionalOnWebApplication.Type type
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.