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

eclipse 中如何对REST进行调试 #364

Open
liuyzai opened this issue Oct 19, 2017 · 1 comment
Open

eclipse 中如何对REST进行调试 #364

liuyzai opened this issue Oct 19, 2017 · 1 comment

Comments

@liuyzai
Copy link

liuyzai commented Oct 19, 2017

REST远程调用风格集成好了,但现在不会debug调试,请高手指点,谢谢各位大神。

@liuyzai
Copy link
Author

liuyzai commented Oct 23, 2017

REST风格远程无法调试的解决办法:
服务端:Provider dubbo配置文件中修改对外暴露的服务如下:
<dubbo:service version="1.0.0" interface="com.service.LoService" ref="loService" protocol="rest" timeout="10000" connections="10" group="hh" />
服务消费方:Consumer: dubbo配置文件修改如下:
<dubbo:reference id="loService" version="1.0.0" interface="com.service.LoService" group="hh" url="rest://localhost:9999" timeout="20000" connections="10" />
9999端口为REST对外提供服务的端口。按上面方式配置完后就可以正常调试了。这种方式是通过group去掉了注册中心改为服务之间直连的方式实现,要上其它环境的时候记得去掉相关配置。

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

1 participant