在我们的一个application.yml中看到此属性,该属性是什么,它的值为true,这是什么意思?以及如何使用它具有真正的值(value)?

最佳答案

它表明Redis运行状况检查的功能。

management.health.redis.enabled=true # Whether to enable Redis health check.

这里的true表示已启用redis运行状况检查,而false表示未启用。

使用非常简单,如果要启用redis运行状况检查,只需将management.health.redis.enabled设置为true,将false设置为disable即可。

看到这个:https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#common-application-properties

关于spring - 什么是属性management.health.redis.enabled以及如何使用?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/52143261/

10-11 22:26
查看更多