cloud.agileframework.spring.util.POIUtilOfMultipartFile Maven / Gradle / Ivy
package cloud.agileframework.spring.util;
import cloud.agileframework.common.util.clazz.TypeReference;
import cloud.agileframework.common.util.file.poi.CellInfo;
import cloud.agileframework.common.util.file.poi.ExcelFormatException;
import cloud.agileframework.common.util.file.poi.POIUtil;
import org.apache.commons.io.FilenameUtils;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.multipart.MultipartFile;
import java.util.List;
import java.util.Map;
import java.util.Objects;
/**
* @author 佟盟 on 2018/10/16
*/
public class POIUtilOfMultipartFile extends POIUtil {
private static final Logger log = LoggerFactory.getLogger(POIUtilOfMultipartFile.class);
/**
* 读取excel文件成list-map形式
*
* @param file excel文件
* @return 格式化结果
*/
public static List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy