后台报错:org.springframework.web.multipart.support.MissingServletRequestPartException: Required request part 'file_data' is not present
后台报错:org.springframework.web.multipart.support.MissingServletRequestPartException: Required request part 'file_data' is not present
原因:前后台参数不匹配,前台没有file_data这个参数
@RequestMapping(value = "/importDept", method = RequestMethod.POST)
@ResponseBody
public AjaxResult importDept(@RequestParam(value = "file_data") MultipartFile file,
HttpServletRequest request) throws ParseException {
.....
}