Comments (5)
是因为什么场景呢?可以方便说说?
因为我担心在真实业务场景会因为错误的数据导致生产环境出问题。
如果有必要的话,我觉得可以另外加一个布尔参数用来控制这个无论什么异常仍然可以导入
from excel-import-export.
数据量比较大 上万条 我导入 失败了 错误数据上千条
不可能一条一条改
希望能返回一个异常 记录导入失败的每条记录信息
先导入 没导入的再查找筛选 修改再导入
from excel-import-export.
这个异常处理的功能在最新版里1.3.11
from excel-import-export.
数据量比较大 上万条 我导入 失败了 错误数据上千条 不可能一条一条改 希望能返回一个异常 记录导入失败的每条记录信息 先导入 没导入的再查找筛选 修改再导入
最新版本1.3.19中会将错误数据在控制台一起打印,所有的错误信息我存入了一个List<List> lists;
中,是一个二维的列表,会将所有错误数据都收集起来,然后一起打印(后续可能考虑写入文件存入数据库等操作)
如果你想遇到错误就中断的话可以通过
@ExcelTableHeader( recordAllExceptions=false)
默认是 recordAllExceptions=true 会收集所有错误日志
from excel-import-export.
给力
from excel-import-export.
Related Issues (8)
- 导入Integer 类型转换异常 HOT 4
- 导入记录 识别到对象 对象都是空数据 HOT 23
- 希望能增加导入匹配数据字典 HOT 4
- 1.3.7 找不到 ExcelTitleBind HOT 3
- v1.3.15 将注解的包路径做一个调整
- escel文件中数据量比较多,有几十万条数据,然后容易OOM HOT 2
- 动态表头 重复表头怎么处理呢 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from excel-import-export.