【SpringBoot报错】MissingServletRequestPartException: Required request part ‘file‘ is not present

    MissingServletRequestPartException: Required request part ‘file‘ is not  present

大概意思是:请求参数’file’接收不到数据

原因就是前端的属性名与Controller的方法参数名不一样导致的

解决方案:将Controller的方法参数名加上注解@RequestParam(“前端属性名”)

你可能感兴趣的:(异常配置,spring,boot,后端,java)