We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v2.4.5
使用autopoi导入时报错
entity实体: @DaTa @TableName("testuser") public class TestUser implements Serializable { private static final long serialVersionUID = 1L;
@TableId(type = IdType.ASSIGN_ID) private int id; @Excel(name = "用户id") private String userid; @Excel(name = "用户名",width = 30) private String username;
} controller代码: MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; List files = multipartRequest.getFiles("file"); MultipartFile file = files.get(0);
//导入excel ImportParams params = new ImportParams(); params.setHeadRows(0); params.setSheetNum(1); params.setNeedSave(false); boolean flag = ExcelImportCheckUtil.check(file.getInputStream(),TestUser.class,params); if(!flag) return Result.error("导入失败,请检查"); ExcelImportUtil.importExcel(file.getInputStream(),TestUser.class,params);//这一行执行报 没有该方法 isNullObject return Result.OK("导入成功");
--------错误日志 2021-08-05 13:23:04.149 [http-nio-8080-exec-3] INFO o.j.poi.excel.imports.ExcelImportServer:423 - >>> poi3升级到4.0兼容改造工作, isXSSFWorkbook = false 没有该方法 isNullObject 没有该方法 isNullObject 没有该方法 isNullObject 没有该方法 isNullObject 没有该方法 isNullObject 没有该方法 isNullObject 没有该方法 isNullObject
The text was updated successfully, but these errors were encountered:
收录 ty
Sorry, something went wrong.
目前影响功能吗?
No branches or pull requests
版本号:
v2.4.5
问题描述:
使用autopoi导入时报错
截图&代码:
entity实体:
@DaTa
@TableName("testuser")
public class TestUser implements Serializable {
private static final long serialVersionUID = 1L;
}
controller代码:
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
List files = multipartRequest.getFiles("file");
MultipartFile file = files.get(0);
--------错误日志
2021-08-05 13:23:04.149 [http-nio-8080-exec-3] INFO o.j.poi.excel.imports.ExcelImportServer:423 - >>> poi3升级到4.0兼容改造工作, isXSSFWorkbook = false
没有该方法 isNullObject
没有该方法 isNullObject
没有该方法 isNullObject
没有该方法 isNullObject
没有该方法 isNullObject
没有该方法 isNullObject
没有该方法 isNullObject
The text was updated successfully, but these errors were encountered: