前端用Json传输数据给后台,用postman测试

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 @ 2018-07-06 10:29  虚极静笃  Views(232)  Comments(0Edit  收藏  举报