Skip to content

Commit 132fd2c

Browse files
committed
Use new class in condition
1 parent 9b8fe44 commit 132fd2c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spring-grpc-spring-boot-autoconfigure/src/main/java/org/springframework/grpc/autoconfigure/server/GrpcServerReflectionAutoConfiguration.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import org.springframework.context.annotation.Bean;
88

99
import io.grpc.BindableService;
10-
import io.grpc.protobuf.services.ProtoReflectionService;
1110
import io.grpc.protobuf.services.ProtoReflectionServiceV1;
1211

1312
/**
@@ -20,7 +19,7 @@
2019
*/
2120
@AutoConfiguration(before = GrpcServerFactoryAutoConfiguration.class)
2221
@ConditionalOnGrpcServerEnabled
23-
@ConditionalOnClass(ProtoReflectionService.class)
22+
@ConditionalOnClass(ProtoReflectionServiceV1.class)
2423
@ConditionalOnProperty(name = "spring.grpc.server.reflection.enabled", havingValue = "true", matchIfMissing = true)
2524
public class GrpcServerReflectionAutoConfiguration {
2625

0 commit comments

Comments
 (0)