Pretty print JSON output of Spring Boot Actuator endpoints

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

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

/metrics
/b         


        
相关标签:
14条回答
  • 2020-12-24 13:17

    Actually I wanted to do the same. But then I asked: why? To debug my service better which comes with a small performance penalty.

    Just use a browser extension, like this one :) to get a view like this one

    0 讨论(0)
  • 2020-12-24 13:18

    The "http.mappers" property works for me but I think you might need it camel cased ("jsonPrettyPrint").

    0 讨论(0)
提交回复
热议问题