Add ConditionalOnGrpcClientEnabled flag
This adds a coarse-grained conditional guard that will disable the client autoconfiguration if `spring.grpc.client.enabled` is set to false or the `io.grpc:grpc-stub` module is not on the classpath. Signed-off-by: Chris Bono <chris.bono@gmail.com>
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
|spring.grpc.client.default-channel.ssl.bundle | | SSL bundle name.
|
||||
|spring.grpc.client.default-channel.ssl.enabled | | Whether to enable SSL support. Enabled automatically if "bundle" is provided unless specified otherwise.
|
||||
|spring.grpc.client.default-channel.user-agent | | The custom User-Agent for the channel.
|
||||
|spring.grpc.client.enabled | `+++true+++` | Whether to enable client autoconfiguration.
|
||||
|spring.grpc.client.observations.enabled | `+++true+++` | Whether to enable Observations on the client.
|
||||
|spring.grpc.server.address | | The address to bind to. could be a host:port combination or a pseudo URL like static://host:port. Can not be set if host or port are set independently.
|
||||
|spring.grpc.server.exception-handling.enabled | `+++true+++` | Whether to enable user-defined global exception handling on the gRPC server.
|
||||
|
||||
Reference in New Issue
Block a user