- windows 下载: protobuf 路径
https://github.com/protocolbuffers/protobuf/releases/download/v3.7.1/protoc-3.7.1-win64.zip
- protobuf 执行命令:到exe文件下
F:\newIntelljCode\itstack-demo-netty\itstack-demo-netty-2-02\protoc-3.5.0-win32\bin\protoc.exe ^
-I=F:\newIntelljCode\itstack-demo-netty\itstack-demo-netty-2-02\src\main\java\org\itstack\demo\netty\proto ^
--java_out=F:\newIntelljCode\itstack-demo-netty\itstack-demo-netty-2-02\src\main\java\org\itstack\demo\netty\domain ^
F:\newIntelljCode\itstack-demo-netty\itstack-demo-netty-2-02\src\main\java\org\itstack\demo\netty\proto\文件名称.proto
- 对接java 依赖
<dependency><groupId>com.google.protobuf</groupId><artifactId>protobuf-java</artifactId><version>3.5.0</version>
</dependency><dependency><groupId>com.googlecode.protobuf-java-format</groupId><artifactId>protobuf-java-format</artifactId><version>1.2</version>
</dependency>