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://i-blog.csdnimg.cn/blog_migrate/d76c4ea67f36fcbddb6dee0778ab5f1b.png)