|
|
|
@ -20,7 +20,6 @@ import com.alibaba.cloud.nacos.ConditionalOnNacosDiscoveryEnabled;
|
|
|
|
|
import com.alibaba.cloud.nacos.NacosDiscoveryProperties;
|
|
|
|
|
import com.alibaba.cloud.nacos.NacosServiceManager;
|
|
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.ObjectProvider;
|
|
|
|
|
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
|
|
|
|
|
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
|
|
|
@ -32,7 +31,6 @@ import org.springframework.cloud.client.discovery.DiscoveryClient;
|
|
|
|
|
import org.springframework.cloud.client.discovery.simple.SimpleDiscoveryClientAutoConfiguration;
|
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
|
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @author xiaojing
|
|
|
|
@ -58,10 +56,8 @@ public class NacosDiscoveryClientConfiguration {
|
|
|
|
|
@ConditionalOnProperty(value = "spring.cloud.nacos.discovery.watch.enabled",
|
|
|
|
|
matchIfMissing = true)
|
|
|
|
|
public NacosWatch nacosWatch(NacosServiceManager nacosServiceManager,
|
|
|
|
|
NacosDiscoveryProperties nacosDiscoveryProperties,
|
|
|
|
|
ObjectProvider<ThreadPoolTaskScheduler> taskExecutorObjectProvider) {
|
|
|
|
|
return new NacosWatch(nacosServiceManager, nacosDiscoveryProperties,
|
|
|
|
|
taskExecutorObjectProvider);
|
|
|
|
|
NacosDiscoveryProperties nacosDiscoveryProperties) {
|
|
|
|
|
return new NacosWatch(nacosServiceManager, nacosDiscoveryProperties);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|