@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
| 构造器和说明 |
|---|
NacosDiscoveryClientConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.cloud.client.discovery.DiscoveryClient |
nacosDiscoveryClient(NacosServiceDiscovery nacosServiceDiscovery) |
NacosWatch |
nacosWatch(NacosDiscoveryProperties nacosDiscoveryProperties,
org.springframework.beans.factory.ObjectProvider<org.springframework.scheduling.TaskScheduler> taskScheduler) |
@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(NacosDiscoveryProperties nacosDiscoveryProperties,
org.springframework.beans.factory.ObjectProvider<org.springframework.scheduling.TaskScheduler> taskScheduler)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.