postman的使用总结

1postman发送普通post请求

在地址栏里输入请求url:http://127.0.0.1:8081/getuser

选择“POST”方式,

点击''body", ''form-data",

添加   键:userid , 值:1

点击send发送请求,查看结果

2 postman发送json格式的post请求

在地址栏里输入请求url:http://127.0.0.1:8081/getmoney

选择“POST”方式,

在“headers”添加key:Content-Type  , value:application/json

点击"body",''raw''并设定为JSON

添加:

{"userid": 1}

点击send发送即可

 

posted @ 2017-02-28 18:09  武侯668  阅读(307)  评论(0编辑  收藏  举报