In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Today I'll show you how to serialize ProtoBuf. The content of the article Xiaobian think good, now to share with you, think there is a need for friends can understand, hope to help everyone, the following with the idea of Xiaobian to read together.
ProtoBuf is Google's open source serialization component. Binary, fast.
Download Address:
https://github.com/google/protobuf/releases/tag/v3.0.0
After downloading the protobuf-java-3.0.0.zip file, you need a Linux server to compile
After I unzipped the file on Linux, I went to the directory/tmp/protobuf-3.0.0
implementation
./ configure
make
make install
The requested URL/tmp/protobuf-3.0.0/java was not found on this server.
mvn clean package
then download
/tmp/protobuf-3.0.0/java/core/target/protobuf-java-3.0.0.jar file to project.
Take the example file for example
cd /tmp/protobuf-3.0.0/examples
protoc --java_out=/tmp addressbook.proto
Then add the com directory under/tmp to the project
Test Code:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.