Class CloudAutoConfiguration
- java.lang.Object
- org.springframework.boot.autoconfigure.cloud.CloudAutoConfiguration
@Configuration @Profile("cloud") @ConditionalOnClass(org.springframework.cloud.config.java.CloudScanConfiguration.class) @ConditionalOnMissingBean(org.springframework.cloud.Cloud.class) @ConditionalOnProperty(prefix="spring.cloud", name="enabled", havingValue="true", matchIfMissing=true) @Import(org.springframework.cloud.config.java.CloudScanConfiguration.class) public class CloudAutoConfiguration extends Object
Auto-configuration
for Spring Cloud.Activates when there is no bean of type
Cloud
is configured in the context, theCloud
type (this spring-cloud) is on the classpath, and the "cloud" profile is active.Once in effect, the auto-configuration is the equivalent of adding the
CloudScan
annotation in one of the configuration file. Specifically, it adds a bean for each service bound to the application and one forApplicationInstanceInfo
- Since:
- 1.2.0
Field Detail
ORDER
public static final int ORDER
- See Also:
- Constant Field Values
Constructor Detail
CloudAutoConfiguration
public CloudAutoConfiguration()