如何在Quarkus 2.x中禁用GRCP Server服务?



我有一个使用Quarkus 2.1的GRPC客户端应用程序,当应用程序启动时得到以下错误:

[io.qua.grp.run.GrpcServerRecorder] (vert.x-eventloop-thread-2) Unable to start the 
gRPC server: java.io.IOException: Failed to bind to address /0.0.0.0:9000
at io.grpc.netty.NettyServer.start(NettyServer.java:268)
at io.grpc.internal.ServerImpl.start(ServerImpl.java:183)

如果我只对客户端部分感兴趣,如何禁用GRPC服务器服务和其他相关服务?是否有可以为此设置的配置属性?

您可以通过flag -quarkus.grpc.dev-mode.force-server-start=false禁用它依赖io.quarkus:quarkus-grpc-deploymentquarkus v2.8.X为我工作

最新更新