You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "zhaosongqiang (GitHub)" <gi...@apache.org> on 2019/01/04 01:42:06 UTC
[GitHub] [incubator-dubbo] zhaosongqiang opened issue #3132: dubbo:service 配置Stub出错
在官方文档 Schema配置参考手册中关于dubbo:service 的stub的介绍:“ 设为true,表示使用缺省代理类名,即:接口名 + Local后缀” 与 2.6.5 代码实现不符。还需要注意如果使用缺省代理类名必须与接口在同一个包下。
`if (stub != null) {
if ("true".equals(stub)) {
stub = interfaceName + "Stub";
}
...
`
[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3132 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo] code4wt commented on issue #3132: dubbo:service 配置Stub出错
Posted by "code4wt (GitHub)" <gi...@apache.org>.
实际上,在 dubbo 中,local 和 stub 均用于配置本地存根。
如果配置 local = true,那么本地存根类名为:接口名 + Local 后缀。
如果配置 stub = true,那么本地存根类名为:接口名 + Stub 后缀。
官方文档混淆了两种存根配置使用方式的描述,你可以向 [dubbo-website](https://github.com/apache/incubator-dubbo-website) 提交一个 pull request 修复这个问题。
[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3132 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo] beiwei30 closed issue #3132: dubbo:service 配置Stub出错
Posted by "beiwei30 (GitHub)" <gi...@apache.org>.
[ issue closed by beiwei30 ]
[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3132 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org