在学习GPRC的时候,客户端遇到如下的坑
No functional channel service provider found. Try adding a dependency on the grpc-okhttp, grpc-netty, or grpc-netty-shaded artifact
这是因为谷歌grpc-all包的问题需要替换成grpc-netty
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty</artifactId>
<version>1.31.1</version>
</dependency>
创建通道替换成
ManagedChannel channel = NettyChannelBuilder.forAddress(host, port).usePlaintext().build();