How to use actuator tools in Springboot Times Could not find acceptable representation
This article mainly introduces "what to do with the actuator tool Times Could not find acceptable representation in Springboot". In the daily operation, I believe that many people have doubts about how to use the actuator tool Times Could not find acceptable representation in the Springboot. The editor consulted all kinds of materials and sorted out a simple and easy-to-use method of operation. I hope it will be helpful to answer the doubts about "how to use the actuator tool Times Could not find acceptable representation in Springboot". Next, please follow the editor to study!
The reason for this is that Spring cannot find a suitable view parser.
I've been looking for solutions for other reasons on the Internet.
It is actually very simple to debug by yourself.
Because my project uses fastjsonConfig, I specify the only MediaType as json
The mediaType that actuator needs is application/vnd.spring-boot.actuator.v2+json.
So just add mediaType.
FastJsonHttpMessageConverter
At this point, the study on "how to use the actuator tool Times Could not find acceptable representation in Springboot" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!