Springboot中使用 actuator工具时 报Could not find acceptable representation

形成这种结果的缘由是 ,Spring没法找到合适的视图解析器  。spring

网上找了一圈都是说其余缘由的解决方法。json

本身debug一遍 ,其实很简单。app

因为个人项目使用了fastjsonConfig , 又指定了惟一的MediaType 为json ,spring-boot

而actuator 须要的mediaType是 application/vnd.spring-boot.actuator.v2+jsondebug

因此添加mediaType便可blog

FastJsonHttpMessageConverter

 

相关文章
相关标签/搜索