DefaultHandlerExceptionResolver : Failed to convert request element: org.springframework.web.method.
@Controller
@OperateAction("F_SOFT")
@RequestMapping(value = "/cm/soft/package")
public class PkgPackageFileManualController {
//========== manager ==========
@Autowired
private PkgPackageFileManualOperateManager pkgPackageFileManualOperateManager;
/**
* 处理导入文件信息
* @param CommonsMultipartFile[]
* @return BaseResultVO
*/
@RequestMapping(method = RequestMethod.POST, value = "/importFile")
@ResponseBody
@OperateAction("O_PACKAGE_FILE_CREATE")
public BaseResultVO importFile(@RequestParam("file") CommonsMultipartFile[] fileList) {
return JsonResultUtil.getResult(pkgPackageFileManualOperateManager.importFile(fileList));
}
}
修改入参为MultipartFile
@Controller
@OperateAction("F_SOFT")
@RequestMapping(value = "/cm/soft/package")
public class PkgPackageFileManualController {
//========== manager ==========
@Autowired
private PkgPackageFileManualOperateManager pkgPackageFileManualOperateManager;
/**
* 处理导入文件信息
* @param CommonsMultipartFile[]
* @return BaseResultVO
*/
@RequestMapping(method = RequestMethod.POST, value = "/importFile")
@ResponseBody
@OperateAction("O_PACKAGE_FILE_CREATE")
public BaseResultVO importFile(@RequestParam("file") MultipartFile[] fileList) {
return JsonResultUtil.getResult(pkgPackageFileManualOperateManager.importFile(fileList));
}
}