非常困惑:spring-boot-starter-web 是否需要使用 Spring 通过 gRPC 启动

Very confused: Is spring-boot-starter-web req'd to use Spring Boot with gRPC

我正在尝试使用 LogNet/grpc-spring-boot-starter 来测试 Spring 使用 gRPC 引导。似乎所有 Spring Boot/gRPC 示例都在构建中包含 spring-boot-starter-web 模块。是否需要该启动器模块才能使带有 @GRpcService 注释的服务器 class 在作为 Spring 启动 jar 启动时始终处于活动状态?

非常感谢,

史蒂夫

是的。来自 codenotfound

We include the spring-boot-starter-web dependency which automatically sets up an embedded Apache Tomcat that will host our gRPC service endpoint.