[英]Is there a protobuf 3 compatible Spring HTTP message converter?
There's a org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter
that can be used to convert protobuf generated java message classes, but it's tested only with protobuf version 2.5 有一个org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter
可用于转换protobuf生成的Java消息类,但仅在protobuf 2.5版中进行了测试
Is there a version compatible with the version 3 of protobuf? 是否有与protobuf的版本3兼容的版本?
Here's a not fully tested solution still in a git branch: 这是一个尚未经过充分测试的解决方案,仍在git分支中:
https://github.com/bclozel/spring-framework/blob/SPR-13589/spring-web/src/main/java/org/springframework/http/converter/protobuf/ProtobufHttpMessageConverter.java https://github.com/bclozel/spring-framework/blob/SPR-13589/spring-web/src/main/java/org/springframework/http/converter/protobuf/ProtobufHttpMessageConverter.java
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.