将@RequestParam( "goodsMain")MultipartFile goodsMainFile
修改为@RequestParam(value = "goodsMain",required = false)MultipartFile goodsMainFile并不一定要求有值就可以