controller接收对象和文件方式
@PostMapping("/test")
@ApiOperation(value = "test", notes = "test")
public void get(@RequestPart Test t,@RequestPart MultipartFile file){
String originalFilename = file.getOriginalFilename();
System.out.println(originalFilename);
System.out.println(123);
}
postman 可如图传参测试
![在这里插入图片描述](https://img-blog.csdnimg.cn/3ea98cb97222438b9846e89981b786e0.png)