dreamroute / excel-helper Goto Github PK
View Code? Open in Web Editor NEWExcel导出工具(基于poi 3.17,JDK 1.7+),可能是目前互联网上比较好用的之一
License: Apache License 2.0
Excel导出工具(基于poi 3.17,JDK 1.7+),可能是目前互联网上比较好用的之一
License: Apache License 2.0
如果第一次上传Excel文件列信息不对,HEAD_INFO中仍会创建该Class对应的headInfo信息。
导致第二次上传正确的Excel文件时抛出ExcelFormatException,抛出异常代码如下:
com.github.dreamroute.excel.helper.util.DataAssistant#createDateFromSheet方法中
while (cells.hasNext()) {
Cell cell = cells.next();
HeaderInfo headerInfo = headerInfoMap.get(cell.getColumnIndex());
if (headerInfo == null) {
throw new ExcelFormatException();
}
Field field = headerInfo.getField();
Object cellValue = getCellValue(cell, headerInfo.getCellType(), field);
try {
field.set(domain, cellValue);
} catch (IllegalArgumentException | IllegalAccessException e) {
throw new ExcelHelperException(e);
}
}
data.add(domain);
}
1.提供一些其他配置特性,如筛选;
2.日期目前只支持字符串,需要增加date;
目前的应用比较局限。我想写入response就做不到了。如果加多一个方法,可以写入指定的流就好了。谢谢
The cell that has features:
caused the error: For input string: "12.0"
Why not parse int like bellow
value = new BigDecimal(cv).intValue();
instead of like that
value = Integer.valueOf(new BigDecimal(cv).toPlainString());
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.