开发常见bug — — 返回的postman报406

1 返回的postman报406

1.1 错误还原

①controller层代码:
开发常见bug — — 返回的postman报406_第1张图片
②返回值ResponseResult
开发常见bug — — 返回的postman报406_第2张图片
③postman传入参数
开发常见bug — — 返回的postman报406_第3张图片
④数据库能插入数据,但是返回ResponseResult对象报错

1.2 错误原因:

ResponseResult对象没有加get、set方法,导致返回出错

你可能感兴趣的:(bug,bug,postman)