一 Postman的使用
官网网址: https://www.postman.com/
Postman的首页

1 使用教程
1.1 发送Post请求
以一个普通的登录操作来演示Postman的使用教程
发送Post请求的: 1.修改请求的方式 2.设置请求体的数据类型

请求数据的格式
1 2 3 4
| { "phone":"13511223456", "password":"admin" }
|
响应数据的格式
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| { "host": null, "code": 200, "errorMessage": "操作成功", "data": { "user": { "id": 4, "salt": "", "name": "admin", "password": "", "phone": "13511223456", "image": null, "sex": true, "certification": null, "identityAuthentication": null, "status": true, "flag": 1, "createdTime": "2020-03-30T08:36:32.000+00:00" }, "token": "eyJhbGciOiJIUzUxMiIsInppcCI6IkdaSVAifQ.H4sIAAAAAAAAADWLQQrDMAzA_uJzc3DnBKe_cRKPpVAIOIWNsb_PPfQmIfSFfXbYgCqlEkmDVI6BHlJCrrWF9IzKiMKNERboMmHDlDFjTMgL2Fn8to9NPa5u5vrSfoibnM1NxnDW97jPvF5n90a_P2LDCJyAAAAA.Rk6wC_YpLmxrqylQxEgz19uKHkrBRV6_JmIqbHrSQENkURtavrzhLzr0D8mQf-wtKivaGGviDGHmdckw8IWi7g" } }
|
二 Swagger的使用
SpringBoot整合Swagger:https://qingling.icu/posts/32246.html
以一个普通的登录操作来演示Swagger的使用教程


三 knife4j的使用
SpringBoot整合Knife4j教程: https://qingling.icu/posts/855.html
gitee地址:https://gitee.com/xiaoym/knife4j
官方文档:https://doc.xiaominfo.com/
核心功能 :文档说明 在线调试 个性化配置 离线文档 接口排序

以一个普通的登录操作来演示knife4j的使用教程

下载离线文档

下载成功之后打开的效果
