postman是一个很好的http模拟器,在测试rest服务时是很好用的工具,可以发送get、post、put等各种请求。


在地址栏里输入请求url:http://127.0.0.1:8081/getmoney
选择“POST”方式,
在“headers”添加key:Content-Type , value:application/json
点击"body",''raw''并设定为JSON
添加:
{"userid": 1}
点击send发送即可
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。