@RestController @RequestMapping(value="/file_tool") public class FileTool extends Object
@PostMapping(value="/analysis_excel") public Result analysisExcel(@RequestParam(name="file",required=false) org.springframework.web.multipart.MultipartFile file, @RequestParam(name="url",required=false) String fileUrl, @RequestParam(name="isVerifiable",required=false,defaultValue="true") Boolean isVerifiable) throws Exception
file - 非必需fileUrl - 非必需(如果有,以这个为主)isVerifiable - 是否需要校验 默认校验 如果需要校验excel格式需要变化,相见具体方法注释ExceptionCopyright © 2021. All rights reserved.