批注接口 ConditionalOnNotWarDeployment
@Target({TYPE,METHOD})
@Retention(RUNTIME)
@Documented
@Conditional(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.- 从以下版本开始:
- 2.7.10
- 作者:
- Guirong Hu