postman请求上传文件接口报400

先看后台代码:
@RestController
public class testController {

    @PostMapping("/uploadTest1")
    public String uploadTest1(@RequestParam("files")MultipartFile files){
        //
        return "成功";
    }
}

postman请求

img

img

请求结果
{
    "timestamp": "2022-11-08T03:40:29.362+00:00",
    "path": "/uploadTest1",
    "status": 400,
    "error": "Bad Request",
    "requestId": "752f222e-6"
}

字段名“files”

看下服务名是什么,是不是没加上。另外字段定义的是files