【SpringBoot报错】MissingServletRequestPartException: Required request part ‘file‘ is not present
MissingServletRequestPartException:Requiredrequestpart‘file‘isnotpresent大概意思是:请求参数’file’接收不到数据原因就是前端的属性名与Controller的方法参数名不一样导致的解决方案:将Controller的方法参数名加上注解@RequestParam(“前端属性名”)