grpc-ecosystem / grpc-spring

Spring Boot starter module for gRPC framework.
https://grpc-ecosystem.github.io/grpc-spring/
Apache License 2.0
3.52k stars 826 forks source link

泛式调用 #844

Open TonyStarkShaDiao opened 1 year ago

TonyStarkShaDiao commented 1 year ago
  1. 请问下是否有泛式调用的方法? 2.如果有的话能否提供下相关的case 作为参考依据
ST-DDT commented 1 year ago

English


Please explain what you refer as generic calling?

It is not possible to create service that has a method like this:

public Bar doFoo(T foo);

The closest you can get is using protobuf's Any or OneOfs.