注释类型 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 thetype()
attribute.
可选元素概要
可选元素 修饰符和类型 可选元素 说明 ConditionalOnWebApplication.Type
type
The required type of the web application.
元素详细资料
type
ConditionalOnWebApplication.Type type
The required type of the web application.- 返回:
- the required web application type
- 默认值:
- org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication.Type.ANY