批注接口 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.- 从以下版本开始:
- 1.0.0
- 作者:
- Dave Syer, Stephane Nicoll
-
嵌套类概要
嵌套类 -
可选元素概要
可选元素
-
元素详细资料
-
type
The required type of the web application.- 返回:
- the required web application type
- 默认值:
ANY
-