|
|
|
@ -2,7 +2,7 @@ package com.dsideal.base.Tools.Excel;
|
|
|
|
|
|
|
|
|
|
import ch.qos.logback.classic.Level;
|
|
|
|
|
import ch.qos.logback.classic.Logger;
|
|
|
|
|
import com.alibaba.excel.EasyExcel;
|
|
|
|
|
import cn.idev.excel.*;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
@ -12,7 +12,7 @@ import java.util.Map;
|
|
|
|
|
public class ExcelReader {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
// 设置 com.alibaba.excel 的日志级别为 INFO
|
|
|
|
|
Logger excelLogger = (Logger) LoggerFactory.getLogger("com.alibaba.excel");
|
|
|
|
|
Logger excelLogger = (Logger) LoggerFactory.getLogger("cn.idev.excel");
|
|
|
|
|
excelLogger.setLevel(Level.INFO);
|
|
|
|
|
String filePath = "D:/dsWork/2025年收集的人口与教育数据库(20250328)/2015-2020年的数据/基础教育/2019.xlsx";
|
|
|
|
|
String sheetName = "基教小学";
|
|
|
|
|