@Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Documented @Conditional(value=org.springframework.boot.autoconfigure.condition.OnWebApplicationCondition.class) public @interface ConditionalOnWebApplication
Conditional
that only matches when the application context is a web application
context.Copyright © 2018 Pivotal Software, Inc.. All rights reserved.