注释类型 ConditionalOnCloudPlatform
@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented @Conditional(org.springframework.boot.autoconfigure.condition.OnCloudPlatformCondition.class) public @interface ConditionalOnCloudPlatform
Conditional
that matches when the specified cloud platform is active.- 从以下版本开始:
- 1.5.0
必需元素概要
所需元素 修饰符和类型 必需的元素 说明 org.springframework.boot.cloud.CloudPlatform
value
Thecloud platform
that must be active.
元素详细资料
value
org.springframework.boot.cloud.CloudPlatform value
Thecloud platform
that must be active.- 返回:
- the expected cloud platform