Annotation Interface ConditionalOnGrpcServletServer
@Retention(RUNTIME)
@Target({TYPE,METHOD})
@ConditionalOnWebApplication(type=SERVLET)
@ConditionalOnClass(name="io.grpc.servlet.jakarta.GrpcServlet")
@ConditionalOnProperty(prefix="spring.grpc.server",
name="servlet.enabled",
havingValue="true",
matchIfMissing=true)
public @interface ConditionalOnGrpcServletServer
@Conditional that determines if the Servlet container should be
used to run the gRPC server. The condition matches only when the app is a servlet web
application and the io.grpc.servlet.jakarta.GrpcServlet class is on the
classpath and the spring.grpc.server.servlet.enabled property is not explicitly
set to false.- Since:
- 1.0.0
- Author:
- Chris Bono, Dave Syer