grpc-ecosystem / grpc-spring

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

How to disable grpc-spring-boot-starter? #1095

Closed youyinnn closed 2 months ago

youyinnn commented 2 months ago

I have the grpc-spring-boot-starter in the dependency. Therefore, it starts the grpc server automatically.

But I don't want it to be like that by default. The scenario is I will start the grpc in any of my unit tests. And my unit test is parallel. Therefore, it throws the Failed to bind to address error.

Is there any grpc.server.enabled = false configuration?

youyinnn commented 2 months ago

I found the solution in: https://github.com/grpc-ecosystem/grpc-spring/issues/419.