错误处理
适用于 ✅ 开源版 ✅ 专业版 ✅ 企业版
当导入大量数据时,错误可能是不可避免的,可能需要在导入后进行处理,而不会影响整个导入。在这些情况下,指定错误处理可能很有用。在所有情况下,错误将在导入过程执行后报告
create.loadInto(BOOK) // Ignore any errors and continue inserting. Errors will be reported nonetheless. .onErrorIgnore() // Abort the import upon encountering the first error. .onErrorAbort() .loadCSV(inputstream) .fields(BOOK.ID, BOOK.AUTHOR_ID, BOOK.TITLE) .execute();
反馈
您对此页面有任何反馈吗? 我们很乐意听取您的意见!