皇上,还记得我吗?我就是1999年那个Linux伊甸园啊-----24小时滚动更新开源资讯,全年无休!

ExcelUtil 2.0.1 发布,新增流导入功能

重大版本更新提示!!!2.0.1版本发布了!!!

从ExcelUtil1.0发布,自发布起,人民群众对于流导入的呼声就从来没有停止过。

就在昨天我们决定对流导入做支持。昨天2.0.1版本已经发布到maven中央仓库。

不管是之前文件、还是现在的流导入,我们都希望在简简单单的2步就搞定,任何操作复杂的工具类都是耍流氓。

流导入使用demo.

@RequestMapping("/test")
@ResponseBody
public List testImport(MultipartFile file) throws IOException, Exception{
  String keyValue ="手机名称:phoneName,颜色:color,售价:price,时间:sj"; 
  List<PhoneModel> list = ExcelUtil.readXls(file.getBytes(), ExcelUtil.getMap(keyValue),  "com.lkx.model.PhoneModel");
  return list;
}

引入pom

<!-- https://mvnrepository.com/artifact/net.oschina.likaixuan/excelutil -->
<dependency>
    <groupId>net.oschina.likaixuan</groupId>
    <artifactId>excelutil</artifactId>
    <version>2.0.1</version>
</dependency>

转自 https://www.oschina.net/news/97902/excelutil-2-0-1-released