Pretty print JSON output of Spring Boot Actuator endpoints

前端 未结 14 969
终归单人心
终归单人心 2020-12-24 12:30

Spring Boot Actuator provides several endpoints to monitor an application as:

/metrics
/b         


        
14条回答
  •  粉色の甜心
    2020-12-24 13:12

    For Spring Boot 1.5.1 I have in my YML file:

    spring:
      jackson:
        serialization:
          INDENT_OUTPUT: true
    

    @BertrandRenuart answer was the closest, but by IDE did not see indent_output as correct.

提交回复
热议问题