Problem returning stream of responses from gRPC service to RESTful client

后端 未结 2 1030
时光说笑
时光说笑 2021-01-14 16:58

I am attempting to write a set of services that will provide a REST interface to external clients, while using gRPC/protobuf for inter-service communication internally. Spri

2条回答
  •  旧巷少年郎
    2021-01-14 17:53

    According to the Gateway log, it looks like jackson is having trouble converting proto to json.

    can you try com.googlecode.protobuf.format.JsonFormat? I am not spring user, but there should be API for custom serialization. or, you can add custom serialization to jackson using JsonFormat but it sounds little weird.

提交回复
热议问题