一行代码完成Excel读写 Sep4j

码农软件 · 软件分类 · 常用工具包 · 2019-08-15 06:27:08

软件介绍

Sep4J:  Simple Spreadsheet Processing for Java ,  通过一次静态方法调用完成 excel List之间的转换。 你不必手写任何 POI 相关代码。

已发布到 Maven 中央仓库。

基本示例

把数据写入Excel

Ssio.save(
    ImmutableMap.of("userId", "User Id", //userId是你的Javabean属性名, User Id是你的Excel的列名 
    "firstName","First Name", 
    "lastName", "Last Name"), 
    userList, spreadsheetOutputStream); 

解析 Excel

List users = Ssio.parse(
    ImmutableMap.of("User Id","userId", //User Id是你的Excel的列名,userId是你的Javabean的属性名
    "First Name","firstName",
    "Last Name","lastName"),
    spreadsheetInputStream,  User.class);

本文地址:https://www.codercto.com/soft/d/12390.html

Sprint

Sprint

Jake Knapp、John Zeratsky、Braden Kowitz / Simon & Schuster / 2016-3-8 / GBP 14.60

媒体推荐 “Every business leader I know worries about the same thing: Are we moving fast enough? The genius of Jake Knapp’s Sprint is its step-by-step breakdown of what it takes to solve big problems an......一起来看看 《Sprint》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

URL 编码/解码
URL 编码/解码

URL 编码/解码

SHA 加密
SHA 加密

SHA 加密工具