文件上传语法
POST http://localhost:8080/<项目配置的:server.servlet.context-path>/<接口地址>
Cache-Control: no-cache
Authorization: 0cc175b9c0f1b6a831c399e269772661
Content-Type: multipart/form-data; boundary=WebAppBoundary
--WebAppBoundary
Content-Disposition: form-data; name="file"; filename="Kali-Linux.pdf"
Content-Type: multipart/form-data
< F:\Kali-Linux.pdf
--WebAppBoundary--
@RequestBody 语法
POST http://localhost:8080/<项目配置的:server.servlet.context-path>/<接口地址>
Accept: */*
Cache-Control: no-cache
Content-Type: application/json; charset=UTF-8
Cookie: JSESSIONID=0cc17-5b9c0f1b6a831c-399e269772661
{"name":"张三"}
普通参数
POST http://localhost:8080/<项目配置的:server.servlet.context-path>/<接口地址>
Accept: */*
Cache-Control: no-cache
Content-Type: application/x-www-form-urlencoded
page=1&pageSize=2
|