springboot返回json对象报错问题解决

This application has no explicit mapping for /error, so you are seeing this as a fallback.
Tue Nov 30 09:28:39 CST 2021 There was an unexpected error (type=Not Acceptable, status=406). Could not find acceptable representation org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable representation
报错的这个对象添加set与get方法,即可解决返回问题

springboot返回json对象报错问题解决最先出现在Python成神之路

版权声明:
作者:zhangchen
链接:https://www.techfm.club/p/6802.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>