天天看點

protostuff基本使用

[toc]

protostuff基于google protobuf,好處就是不用自己寫.proto檔案即可實作對象的序列化與反序列化,下面給出示例代碼。

執行demo代碼,輸出如下: