@Configuration
@ConditionalOnDiscoveryEnabled
@ConditionalOnProperty(value="spring.cloud.discovery.blocking.enabled",
matchIfMissing=true)
@AutoConfigureBefore(value={org.springframework.cloud.client.discovery.simple.SimpleDiscoveryClientAutoConfiguration.class,org.springframework.cloud.client.CommonsClientAutoConfiguration.class})
@AutoConfigureAfter(value=NacosDiscoveryAutoConfiguration.class)
public class NacosDiscoveryClientConfiguration
extends Object
| Constructor and Description |
|---|
NacosDiscoveryClientConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.cloud.client.discovery.DiscoveryClient |
nacosDiscoveryClient(NacosServiceDiscovery nacosServiceDiscovery) |
NacosWatch |
nacosWatch(NacosServiceManager nacosServiceManager,
NacosDiscoveryProperties nacosDiscoveryProperties,
org.springframework.beans.factory.ObjectProvider<org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler> taskExecutorObjectProvider) |
@Bean public org.springframework.cloud.client.discovery.DiscoveryClient nacosDiscoveryClient(NacosServiceDiscovery nacosServiceDiscovery)
@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(value="spring.cloud.nacos.discovery.watch.enabled",
matchIfMissing=true)
public NacosWatch nacosWatch(NacosServiceManager nacosServiceManager,
NacosDiscoveryProperties nacosDiscoveryProperties,
org.springframework.beans.factory.ObjectProvider<org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler> taskExecutorObjectProvider)
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.