项目开发中需要将file转化为MultipartFile,网上百度发现使用org.springframework.mock.web.MockMultipartFile可以File file3 = new File(fileMap.get("file").
確定! 回上一頁