天天看点

protostuff基本使用

[toc]

protostuff基于google protobuf,好处就是不用自己写.proto文件即可实现对象的序列化与反序列化,下面给出示例代码。

执行demo代码,输出如下: