Giter Site home page Giter Site logo

Comments (5)

1015770492 avatar 1015770492 commented on June 22, 2024

是因为什么场景呢?可以方便说说?

因为我担心在真实业务场景会因为错误的数据导致生产环境出问题。
如果有必要的话,我觉得可以另外加一个布尔参数用来控制这个无论什么异常仍然可以导入

from excel-import-export.

TomYule avatar TomYule commented on June 22, 2024

数据量比较大 上万条 我导入 失败了 错误数据上千条
不可能一条一条改
希望能返回一个异常 记录导入失败的每条记录信息
先导入 没导入的再查找筛选 修改再导入

from excel-import-export.

1015770492 avatar 1015770492 commented on June 22, 2024

这个异常处理的功能在最新版里1.3.11

from excel-import-export.

1015770492 avatar 1015770492 commented on June 22, 2024

数据量比较大 上万条 我导入 失败了 错误数据上千条 不可能一条一条改 希望能返回一个异常 记录导入失败的每条记录信息 先导入 没导入的再查找筛选 修改再导入

最新版本1.3.19中会将错误数据在控制台一起打印,所有的错误信息我存入了一个List<List> lists;
中,是一个二维的列表,会将所有错误数据都收集起来,然后一起打印(后续可能考虑写入文件存入数据库等操作)
如果你想遇到错误就中断的话可以通过
@ExcelTableHeader( recordAllExceptions=false)
默认是 recordAllExceptions=true 会收集所有错误日志

from excel-import-export.

TomYule avatar TomYule commented on June 22, 2024

给力

from excel-import-export.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.