mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
Polish alibaba/spring-cloud-alibaba/#1261 : Removing the commercial examples and adding starters into spring-cloud-alibaba-coverage module
This commit is contained in:
@@ -52,7 +52,8 @@ public class NacosConfigEndpointAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
@ConditionalOnProperty(name = "spring.cloud.nacos.config.health.enabled", matchIfMissing = true)
|
||||
@ConditionalOnProperty(name = "spring.cloud.nacos.config.health.enabled",
|
||||
matchIfMissing = true)
|
||||
public NacosConfigHealthIndicator nacosConfigHealthIndicator() {
|
||||
return new NacosConfigHealthIndicator(nacosConfigManager.getConfigService());
|
||||
}
|
||||
|
@@ -547,8 +547,8 @@ public class NacosDiscoveryProperties {
|
||||
private Properties getNacosProperties() {
|
||||
Properties properties = new Properties();
|
||||
properties.put(SERVER_ADDR, serverAddr);
|
||||
properties.put(USERNAME, Objects.toString(username,""));
|
||||
properties.put(PASSWORD, Objects.toString(password,""));
|
||||
properties.put(USERNAME, Objects.toString(username, ""));
|
||||
properties.put(PASSWORD, Objects.toString(password, ""));
|
||||
properties.put(NAMESPACE, namespace);
|
||||
properties.put(UtilAndComs.NACOS_NAMING_LOG_NAME, logName);
|
||||
|
||||
|
@@ -222,9 +222,11 @@ public abstract class AbstractSpringCloudRegistry extends FailbackRegistry {
|
||||
Collection<ServiceInstance> serviceInstances = serviceInstancesFunction
|
||||
.apply(serviceName);
|
||||
|
||||
// issue : ReStarting a consumer and then starting a provider does not automatically discover the registration
|
||||
// issue : ReStarting a consumer and then starting a provider does not
|
||||
// automatically discover the registration
|
||||
// fix https://github.com/alibaba/spring-cloud-alibaba/issues/753
|
||||
// Re-obtain the latest list of available metadata address here, ip or port may change.
|
||||
// Re-obtain the latest list of available metadata address here, ip or port may
|
||||
// change.
|
||||
// by https://github.com/wangzihaogithub
|
||||
dubboMetadataConfigServiceProxy.removeProxy(serviceName);
|
||||
repository.removeMetadataAndInitializedService(serviceName);
|
||||
|
Reference in New Issue
Block a user