问题
在访问/actuator/health的过程中,json没有格式化。
解决
在application.properties文件中,添加如下配置:
spring.jackson.serialization.indent_output=true
效果
这样json就会自动被格式化处理。
在访问/actuator/health的过程中,json没有格式化。
在application.properties文件中,添加如下配置:
spring.jackson.serialization.indent_output=true
这样json就会自动被格式化处理。
转载于:https://my.oschina.net/fxtxz2/blog/3064855