mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-14 16:07:32 +08:00
commit
de658c307d
@ -29,7 +29,7 @@ public class ExcelUtil {
|
||||
* @return 转换后集合
|
||||
*/
|
||||
public static <T> List<T> importExcel(InputStream is, Class<T> clazz) {
|
||||
return EasyExcel.read(is).autoCloseStream(false).sheet().doReadSync();
|
||||
return EasyExcel.read(is).head(clazz).autoCloseStream(false).sheet().doReadSync();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user