最近我将spring-boot-starter-actuator更新到2.2.2版本,当我调用/health
端点时,我得到了以下结果:
{
"groups": [],
"status": {
"code": "UP",
"description": ""
}
}
替代方案:
{
"status": "UP"
}
我不知道出现这种情况的原因。有任何想法吗?或者我如何将输出的JSON重新格式化为原始格式?不覆盖HealthIndicator,只重新格式化。
先行致谢。