gpt4 book ai didi

spring-boot - 有没有办法在 Spring Boot 2 Actuator 中禁用 ReactiveHealthIndicators?

转载 作者:行者123 更新时间:2023-12-04 12:43:04 25 4
gpt4 key购买 nike

使用 Spring Boot 2.1.2 执行器。我的类路径中有 Redis。 Actuator 自动启用 RedisReactiveHealthIndicator。我不想要那个。我的应用程序不是响应式(Reactive)的。我想要 RedisHealthIndicator,但响应式正在替换它。

有没有办法停止自动启用 react 性健康指标?

最佳答案

management.health.redis.enabled = false

将此添加到您的 application.properties 文件中。

希望这有帮助;)

关于spring-boot - 有没有办法在 Spring Boot 2 Actuator 中禁用 ReactiveHealthIndicators?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55503580/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com