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

栏目: 软件资讯 · 发布时间: 5年前

内容简介:重大版本更新提示!!!2.0.1版本发布了!!! 从ExcelUtil1.0发布,自发布起,人民群众对于流导入的呼声就从来没有停止过。 就在昨天我们决定对流导入做支持。昨天2.0.1版本已经发布到maven中央仓库。 不管是之前...

重大版本更新提示!!!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>

【声明】文章转载自:开源中国社区 [http://www.oschina.net]


以上所述就是小编给大家介绍的《ExcelUtil 2.0.1 发布,新增流导入功能》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Defensive Design for the Web

Defensive Design for the Web

37signals、Matthew Linderman、Jason Fried / New Riders / 2004-3-2 / GBP 18.99

Let's admit it: Things will go wrong online. No matter how carefully you design a site, no matter how much testing you do, customers still encounter problems. So how do you handle these inevitable bre......一起来看看 《Defensive Design for the Web》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

MD5 加密
MD5 加密

MD5 加密工具

SHA 加密
SHA 加密

SHA 加密工具