Skip to content
New issue

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

使用ExcelReader读取Excel文件,列内容长度特别长导致读取的值不完整 #3529

Closed
Mengleijin opened this issue Mar 29, 2024 · 2 comments
Labels

Comments

@Mengleijin
Copy link

版本情况

JDK版本: openjdk_8_201
hutool版本: 5.8.26(已确保最新尝试还有问题)

问题描述

你好,想问一下使用ExcelReader读取Excel文件,列内容长度特别长导致读取的值不完整,这是Hutool工具做了限制?还是自定义对象定义的字段(用的String)有长度限制?
  1. 复现代码
        File file = FileUtil.file("xxx.xlsx");
        ExcelReader reader = ExcelUtil.getReader(file);
        List<MyObject> objectList = reader.readAll(MyObject.class);
@looly
Copy link
Member

looly commented Mar 29, 2024

Excel对单元格的内容长度有限制。

@looly looly closed this as completed Mar 29, 2024
@looly looly added the question label Mar 29, 2024
@Mengleijin
Copy link
Author

@looly 在Excel中内容是完整的,通过hutool读到的是不完整的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants