我这里是以pb2为例,2和3不兼容,但是方法大致相同
1 pom依赖
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>2.6.1</version>
</dependency>
<dependency&g[......]
我这里是以pb2为例,2和3不兼容,但是方法大致相同
1 pom依赖
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>2.6.1</version>
</dependency>
<dependency&g[......]