参考链接1
参考链接2
1、同一个接口用Swagger能请求到数据,但用Postman却请求不到
1 | localhost:8888/base/register |
2、解决方法如下截图
1、选择 Body --->raw --->JSON
2、填JSON格式请求体 (key-value) 其中key忽略大小写,key中字母任意大小写都能请求到数据
1 2 3 4 5 6 | // Key中字母任意大小写都能请求到接口数据 { "userName":"admin12", // username 中字母可以任意大小写 "passWord":"0000", "nickName":"0000", "authoriTyId":"11" // authoriTyId 中字母可以任意大小写 |

屏幕快照 2020-11-25 下午2.03.01.png