SpringBoot报错:Content type 'text/plain;charset=UTF-8' not supported

控制台输出:

 

访问的接口:

 

 

 

postman:

 

解决方式:之前用text,改为json

SpringBoot 默认使用 Json 作为响应报文格式

 

 

posted @ 2022-03-23 14:25  今天又下小雨  阅读(4234)  评论(0编辑  收藏  举报