You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "chickenlj (GitHub)" <gi...@apache.org> on 2019/01/30 07:50:32 UTC

[GitHub] [incubator-dubbo] chickenlj commented on issue #3373: how to use protobuf with dubbo

I think it's quite similar to using other serialization mechanisms, say hessian. The only thing you need to do is to tell the service the serialization type you choose to use, like this:
```xml
<dubbo:service serialization="protostuff" interface="com.alibaba.dubbo.demo.DemoService" ref="demoService"/>
```

Thanks to protostuff, simple POJO java object can be serialized & deserialized directly, no extra .poto files are needed. 

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3373 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org