sping boot 报:Could not find acceptable representation原因及解决方法

xiaoxiao2021-04-17  169

先附上一般解决方案:https://blog.csdn.net/tracker_w/article/details/51557957

但是我这个是因为用了swagger ui 测试数据的时候返回时

选择了xml格式导致报了Could not find acceptable representation

把返回数据格式换成

就可以了,这是我个人的错误场景,有朋友相同的可以尝试修改下

转载请注明原文地址: https://www.6miu.com/read-4819665.html

最新回复(0)