Postman代码测试工具如何用?

1.  1)get请求,参数为map时,

 

  postman的传参

  2)参数为基本数据类型的参数时

  postman传参:

  3)当参数在接口中动态获取时

  postman传参:

2.  1)post请求,参数为map时:

  postman传参:

  2)参数为List集合时(参数为集合或者数组参数形式一样,都是[,,,,,])

  postman传参:

  3)参数为一个基本数据类型的参数时(controller层接收参数时,不需要任何注解)

  postman传参:

 

posted @ 2020-12-21 17:07  Curedfisher  阅读(206)  评论(1编辑  收藏  举报