批注接口 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
  • 元素详细资料