Could not find acceptable representation using spring-boot-starter-web I encountered same exception: "Resolved [org springframework web HttpMediaTypeNotAcceptableException: Could not find acceptable representation"] In analysis I fount that this problem can generate during serialization of a class while calling a @Controller or @RestController
The HttpMediaTypeNotAcceptableException in Spring MVC - Baeldung In this tutorial, we’ve considered the HttpMediaTypeNotAcceptableException exception thrown by Spring MVC when there’s a mismatch between what the client asks for and what the server can actually produce
[异常记录] Exception:Could not find acceptable representation org springframework web HttpMediaTypeNotAcceptableException: Could not find acceptable representation 无法找到可接受的代理 返回 406 http 状态码 环境 基于 springboot,使用 @RestController 和 @PostMapping 注解 这样 web 层返回结果时,直接 return Object,由 spring 将 Object 转化为 json 返回给前端