Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dubbo:service 配置Stub出错 #3132

Closed
zhaosongqiang opened this issue Jan 4, 2019 · 1 comment
Closed

dubbo:service 配置Stub出错 #3132

zhaosongqiang opened this issue Jan 4, 2019 · 1 comment

Comments

@zhaosongqiang
Copy link

在官方文档 Schema配置参考手册中关于dubbo:service 的stub的介绍:“ 设为true,表示使用缺省代理类名,即:接口名 + Local后缀” 与 2.6.5 代码实现不符。还需要注意如果使用缺省代理类名必须与接口在同一个包下。
if (stub != null) { if ("true".equals(stub)) { stub = interfaceName + "Stub"; } ...

@code4wt
Copy link
Contributor

code4wt commented Jan 4, 2019

实际上,在 dubbo 中,local 和 stub 均用于配置本地存根。

如果配置 local = true,那么本地存根类名为:接口名 + Local 后缀。
如果配置 stub = true,那么本地存根类名为:接口名 + Stub 后缀。

官方文档混淆了两种存根配置使用方式的描述,你可以向 dubbo-website 提交一个 pull request 修复这个问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants