摘要:
新做的Mini项目计划使用Google的Protobuf来做,关于Protobuf是什么玩意能干什么请自己去看这里:http://code.google.com/p/protobuf/这里讲一下安装Protobuf到在Eclipse下配置使用它的简单过程总结。我使用的是Windows系统,计划使用P... 阅读全文
posted @ 2014-09-25 13:02
dongweiq
阅读(321)
评论(0)
推荐(0)
摘要:
1..proto文件为要生成.java文件的模板文件,其中包含名称空间、文件名等信息2.cmd中进入当前目录D:\JAVA\protoc-2.5.0-win323.运行 protoc.exe --java_out=. SubscribeReq.proto 将在当前文件夹下生成对应的.java文件Su... 阅读全文
posted @ 2014-09-25 13:01
dongweiq
阅读(306)
评论(0)
推荐(0)
摘要:
protobuf下载地址https://code.google.com/p/protobuf/wiki/Download?tm=2原文:http://www.cnblogs.com/stephen-liu74/archive/2013/01/02/2841485.html该系列Blog的内容主体主要... 阅读全文
posted @ 2014-09-25 12:51
dongweiq
阅读(238)
评论(0)
推荐(0)
摘要:
1.定义proto文件:User.protopackage netty;option java_package="myprotobuf";option java_outer_classname="UserProto";message User{ required int32 ID=1; ... 阅读全文
posted @ 2014-09-25 11:52
dongweiq
阅读(2582)
评论(0)
推荐(0)

浙公网安备 33010602011771号