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方法,即可解决返回问题
共有 0 条评论