Postman测试api@RequestBody接收参数

api

postman

结果

{
    "code": 400,
    "message": "Content type 'multipart/form-data;boundary=--------------------------043259503089931000115304;charset=UTF-8' not supported"
}

 问题解决,重新设置postman

数据

{"id":13,"username":"bbb","password":"123","nickName":"bb1"}

 

 可以正确获取数据进行更新了

{
    "code": 200,
    "data": null,
    "message": "SUCCESS"
}

 

posted @ 2019-02-13 16:43  慕尘  阅读(6737)  评论(0编辑  收藏  举报