grpc-spring icon indicating copy to clipboard operation
grpc-spring copied to clipboard

can supports grpc server enabled by config

Open haochencheng opened this issue 4 years ago • 2 comments

i dependency grpc-spring-boot-starter in pom and i want to enabled/disabled grpc server in cofig like this:

grpc:
  server:
    port: 0
    enabled: false 

can supports the param grpc.server.enabled in future?

haochencheng avatar Jul 19 '21 10:07 haochencheng

There is already the port=-1 option to disable it, but this feature has been requested multiple times. So I'll add it to our ToDo list.

ST-DDT avatar Jul 19 '21 11:07 ST-DDT

There is already the port=-1 option to disable it, but this feature has been requested multiple times. So I'll add it to our ToDo list.

thanks , i dont know the port=-1 option can disable it.

haochencheng avatar Jul 19 '21 11:07 haochencheng