首页 > 其他 > 详细

postman使用教程

时间:2017-11-03 14:51:19      阅读:358      评论:0      收藏:0      [点我收藏+]

st请求: 

@PostMapping(value="/user")

 

url:

localhost:8088/demo/user
首先设置Header:

技术分享

技术分享

 

 

1.2 post请求:

@RequestMapping(value="/user/{page}/{limit}",method={RequestMethod.GET,RequestMethod.POST})
public ResMessage queryPage(@RequestBody DTO dto,@PathVariable(required=true)int page,@PathVariable(required=true)int limit)

url:

http://localhost:8088/demo/user/2/3

 技术分享

技术分享

点击提交就可以了,

2.get请求

技术分享

4.put请求、Delete请求和post请求设置一下,这里不做赘述

 

注:Restful风格的请求,post(增)、删(delete)、改(put)、查(get)

postman使用教程

原文:http://www.cnblogs.com/zhangshitong/p/7778059.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!