-
Grpc 服务端配置器允许您将自定义配置添加到 gRPC 的 ServerBuilder。
这里的 keepAliveTime 和 GrpcServerProperties 中的 keepAliveTime 有什么区别么 ? |
Beta Was this translation helpful? Give feedback.
Answered by
ST-DDT
Jun 14, 2024
Replies: 1 comment
-
The main difference is the order they are applied: Your example GrpcServerConfigurer only works with GrpcServerConfigurer take precedence over any configuration. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ST-DDT
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The main difference is the order they are applied:
grpc-spring/grpc-server-spring-boot-starter/src/main/java/net/devh/boot/grpc/server/serverfactory/AbstractGrpcServerFactory.java
Lines 83 to 92 in a18aeeb
grpc-spring/grpc-server-spring-boot-starter/src/main/java/net/devh/boot/grpc/server/serverfactory/NettyGrpcServerFactor…