Class CloudServiceConnectorsAutoConfiguration


  • @Configuration
    @Profile("cloud")
    @AutoConfigureOrder(-2147483628)
    @ConditionalOnClass(org.springframework.cloud.config.java.CloudScanConfiguration.class)
    @ConditionalOnMissingBean(org.springframework.cloud.Cloud.class)
    @Import(org.springframework.cloud.config.java.CloudScanConfiguration.class)
    public class CloudServiceConnectorsAutoConfiguration
    extends Object
    Auto-configuration for Spring Cloud Service Connectors.

    Activates when there is no bean of type Cloud 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 for ApplicationInstanceInfo.

    Since:
    2.1.0