-
Notifications
You must be signed in to change notification settings - Fork 26.4k
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
使用Http协议方式,如何使用json序列化方式 #54
Comments
自行实现一个HTTP的JSON协议Protocol,类似Hessian和Dubbo。 |
文档上不是说明是支持json的吗?而且源码里也已经有了HttpProtocol,不知道楼上是自己实现的吗?方便的话发份源码看看吗,我的邮箱liuluo129@163.com,谢谢 |
HttpProtocol你看看源代码就知道了,你看一下也就知道自己如何实现一个JSONRPCProtocol的协议了,不难,但使用非Dubbo的协议都存在一个问题,如何进行服务注册与服务发布?以及如何进行负载均衡等? |
同求代码 @dolt131943 |
Hi, @liuluo129 Now you can try rest protocol: https://github.com/apache/incubator-dubbo-docs/blob/master/dubbo-user-book/rest.md Feel free to reopen it if you also have any question. |
文档上写的使用http协议时,默认使用json序列化,但是实际上请求头和响应头的content-type都是application/x-java-serialized-object,请求体和响应体也是类似java序列化的方式,想知道怎么才能使用json序列化方式呢
The text was updated successfully, but these errors were encountered: