@Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Documented @Conditional(value=org.springframework.boot.autoconfigure.condition.OnWarDeploymentCondition.class) public @interface ConditionalOnNotWarDeployment
@Conditional
that only matches when the application is not a
traditional WAR deployment. For applications with embedded servers, this condition will
return true.