Skip to content

Commit ad150b8

Browse files
authored
Merge pull request #535 from yidongnan/fix/bean-condition
Fix/bean condition
2 parents d508d41 + 528ea81 commit ad150b8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

docs/en/versions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Current version.
4747

4848
| Version | spring-boot | gRPC | Date |
4949
|:-------:|:-----------:|:----:| ---: |
50-
| 2.12.0* | 2.4.5 | 1.37.0 | Apr, 2021 |
50+
| 2.12.0* | 2.4.5 | 1.37.0 | Mai, 2021 |
5151
| 2.11.0 | 2.3.8 | 1.35.0 | Feb, 2021 |
5252
| 2.10.1 | 2.3.3 | 1.31.1 | Aug, 2020 |
5353
| 2.10.0 | 2.3.3 | 1.31.1 | Aug, 2020 |

grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/autoconfigure/GrpcHealthServiceAutoConfiguration.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import org.springframework.context.annotation.Configuration;
2626

2727
import io.grpc.BindableService;
28-
import io.grpc.protobuf.services.ProtoReflectionService;
2928
import io.grpc.services.HealthStatusManager;
3029
import net.devh.boot.grpc.server.service.GrpcService;
3130

@@ -35,7 +34,7 @@
3534
* @author Daniel Theuke ([email protected])
3635
*/
3736
@Configuration
38-
@ConditionalOnClass(ProtoReflectionService.class)
37+
@ConditionalOnClass(HealthStatusManager.class)
3938
@ConditionalOnProperty(prefix = "grpc.server", name = "health-service-enabled", matchIfMissing = true)
4039
@AutoConfigureBefore(GrpcServerFactoryAutoConfiguration.class)
4140
public class GrpcHealthServiceAutoConfiguration {

0 commit comments

Comments
 (0)