You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "wuwenhui0917 (GitHub)" <gi...@apache.org> on 2020/04/03 10:26:04 UTC
[GitHub] [dubbo] wuwenhui0917 commented on issue #5947: 使用默认 protocol 配置的问题
private void doExportUrls() {
List<URL> registryURLs = loadRegistries(true);
_for (ProtocolConfig protocolConfig : protocols) {_
//服务唯一标记
String pathKey = URL.buildKey(getContextPath(protocolConfig).map(p -> p + "/" + path).orElse(path), group, version);
//发布的方法
ProviderModel providerModel = new ProviderModel(pathKey, ref, interfaceClass);
ApplicationModel.initProviderModel(pathKey, providerModel);
doExportUrlsFor1Protocol(protocolConfig, registryURLs);
}
}
上面就是export服务代码,配置几个协议会发布几个协议的。
[ Full content available at: https://github.com/apache/dubbo/issues/5947 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org