本次更新:
1.升级poi版本至3.15
2.适配3.15最新的API
3.修复将整数判定为浮点数问题
使用样例:[code]FastExcel fastExcel = new FastExcel("E:/data.xlsx");
fastExcel.setSheetName("活动信息数据");
List
if(null != tests && !tests.isEmpty()) {
for(MyTest myTest : tests) {
LOG.debug("记录:{}", myTest.toString());
}
} else {
LOG.debug("没有结果");
}[/code]映射类[code]public class MyTest {
@MapperCell(cellName = "名称")
private String name;
@MapperCell(cellName = "联系电话")
private String phone;
@MapperCell(cellName = "地址")
private String address;
@MapperCell(cellName = "一级分类ID")
private int type;
@MapperCell(cellName = "经度")
private double lat;[/code]软件详情:http://git.oschina.net/pyinjava/fastexcel
来自:开源中国社区

