提交 3423baf2 编写于 作者: K kimi

DUBBO-361 在暴露服务时,如果是napoli协议,则默认添加async=true

上级 623bfc3c
......@@ -408,6 +408,10 @@ public class ServiceConfig<T> extends AbstractServiceConfig {
protocolConfig.setRegister(false);
map.put("notify", "false");
}
// ugly hack
if ("napoli".equals(protocolConfig.getName())) {
map.put(Constants.ASYNC_KEY, Boolean.TRUE.toString());
}
// 导出服务
String contextPath = protocolConfig.getContextpath();
if ((contextPath == null || contextPath.length() == 0) && provider != null) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册