一行代码完成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://codercto.com/soft/d/12390.html

Never Lost Again

Never Lost Again

[美] Bill Kilday / HarperBusiness / 2018-5-29 / USD 8.00

As enlightening as The Facebook Effect, Elon Musk, and Chaos Monkeys—the compelling, behind-the-scenes story of the creation of one of the most essential applications ever devised, and the rag-tag tea......一起来看看 《Never Lost Again》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

html转js在线工具
html转js在线工具

html转js在线工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试