健康检查
请确保您已经安装了 spring-cloud-stream-redis,如果您尚未安装,请查看 安装。
开启配置
management:
  endpoints:
    web:
      exposure:
        include: '*'
  endpoint:
    health:
      show-details: always
  health:
    binders:
      enabled: true
    redis:
      enabled: false
访问路径
/actuator/health
示例:
{
    "status": "UP",
    "components": {
        "binders": {
            "status": "UP",
            "components": {
                "redis": {
                    "status": "UP",
                    "details": {
                        "version": "7.1.2",
                        "pool.maxTotal": 8,
                        "pool.maxIdle": 8,
                        "pool.minIdle": 0
                    }
                }
            }
        },
        "ping": {
            "status": "UP"
        }
    }
}