lin-jinwei, FaQianApp
注意,未授权不得擅自以盈利方式转载本博客任何文章。
Code: ../code
What is Postman? Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
简单地讲,Postman就是一款非常常用的一个APIs测试工具软件。 另外,用来测试Java-SpringBoot项目的RESTful请求也是非常的好用。
下载完成后,将下载文件复制到安装目录进行解压安装,也可以直接安装:
命令:
tar -zxvf postman-linux-x64.tar.gz
解压完成:
进入Postman目录:
点击图标启动运行:
如果没有安装UI桌面,则直接进入Postman的解压目录,运行下面命令即可运行Postman:
命令:
./Postman
完整功能需要登陆才能使用:
不想本地安装postman的可以直接网上访问地址使用:
https://www.postman.com/downloads/?utm_source=postman-home
登陆后可以使用更加复杂的内容:
首先打开一个已经在运行的SpringBoot项目:
测试命令:
http://localhost:8080/getFun1
测试命令:带请求参数的Get请求
http://localhost:8080/getFun1?name=jinwei
测试成功!
点击Postman左边竖直栏的History,可以查看测试命令记录以及测试命令的使用记录。