Merge pull request #2344 from terminux/master

Update documentation and code comment links
pull/2347/head
Steve Rao 3 years ago committed by GitHub
commit e63e887042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -281,7 +281,7 @@ NOTE: 该配置必须放在 bootstrap.properties 文件中。并且在添加配
=== 支持自定义扩展的 Data Id 配置
Nacos Config 从 0.2.1 版本后,可支持自定义 Data Id 的配置。关于这部分详细的设计可参考 https://github.com/spring-cloud-incubator/spring-cloud-alibaba/issues/141[这里]。
Nacos Config 从 0.2.1 版本后,可支持自定义 Data Id 的配置。关于这部分详细的设计可参考 https://github.com/alibaba/spring-cloud-alibaba/issues/141[这里]。
一个完整的配置案例如下所示:
[source,properties]

@ -280,7 +280,7 @@ NOTE: This configuration must be in the bootstrap.properties file, and the value
=== Support Custom Data Id
As of Spring Cloud Alibaba Nacos Config, data id can be self-defined. For detailed design of this part, refer to https://github.com/spring-cloud-incubator/spring-cloud-alibaba/issues/141[Github issue].
As of Spring Cloud Alibaba Nacos Config, data id can be self-defined. For detailed design of this part, refer to https://github.com/alibaba/spring-cloud-alibaba/issues/141[Github issue].
The following is a complete sample:
[source,properties]

@ -378,7 +378,7 @@ public class DubboServiceMetadataRepository
String ipAddress = hostInfo.getIpAddress();
// To use InetUtils to set IP if they are different
// issue :
// https://github.com/spring-cloud-incubator/spring-cloud-alibaba/issues/589
// https://github.com/alibaba/spring-cloud-alibaba/issues/589
if (!Objects.equals(url.getHost(), ipAddress)) {
actualURL = url.setHost(ipAddress);
}
@ -388,7 +388,7 @@ public class DubboServiceMetadataRepository
public void unexportURL(URL url) {
String key = url.getServiceKey();
// NPE issue :
// https://github.com/spring-cloud-incubator/spring-cloud-alibaba/issues/591
// https://github.com/alibaba/spring-cloud-alibaba/issues/591
List<URL> urls = allExportedURLs.get(key);
if (!isEmpty(urls)) {
urls.remove(url);

Loading…
Cancel
Save