Closed wuaoya closed 1 year ago
`@GrpcService public class GrpcServerService extends SimpleGrpc.SimpleImplBase {
@Override public void sayHello(final HelloRequest req, final StreamObserver<HelloReply> responseObserver) { final HelloReply reply = HelloReply.newBuilder().setMessage("Hello ==> " + _**### req.getName())**_.build(); responseObserver.onNext(reply); responseObserver.onCompleted(); }
}`
请看这块代码,req.getName()只有get方法才能取到值,但是我字段太多了想通过fastJson之类的方法直接将参数转化为我的业务实体从而便于操作,有没有方法?
There is nothing we can do there. Please ask this question in the fastjson repo and link it here.
`@GrpcService public class GrpcServerService extends SimpleGrpc.SimpleImplBase {
}`
请看这块代码,req.getName()只有get方法才能取到值,但是我字段太多了想通过fastJson之类的方法直接将参数转化为我的业务实体从而便于操作,有没有方法?