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

autopoi里poi的版本能不能升级到5,以兼容fastexcel #7778

Open
yidao2000 opened this issue Feb 7, 2025 · 1 comment
Open

autopoi里poi的版本能不能升级到5,以兼容fastexcel #7778

yidao2000 opened this issue Feb 7, 2025 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@yidao2000
Copy link

版本号:

springboot3 当前最新版本: 3.7.1(发布日期:2024-09-12)

问题描述:

我自己建立的模块里,屏蔽了autopoi,换成了easyexcel,这个是没问题的.
现在又出了一个fastexcel,我把easyexcel换成fastexcel,一直报错.
后来发现autopoi里poi的版本是4,fastexcel的版本是5
CTWorkbook类同时存在在5.4.0,4.1.2,1.4里.
CTWorkbook类里的Factory方法在5.4.0里面有,4.1.2和1.4里面没有.
导致fastexcel里每次调用CTWorkbook类的时候会调用4.1.2或1.4里的CTWorkbook类里的Factory,就会提示没有这个方法.

库中会同时存在以下3个库.
Maven: org.apache.poi:poi-ooxml:5.4.0 (fastexcel里的)
Maven: org.apache.poi:poi-ooxml-schemas:4.1.2(aotupoi里的)
Maven: org.apache.poi:ooxml-schemas:1.4(aotupoi里的)

我的诉求是能不能把autopoi的poi也升级到最新5.几版本.

错误截图:

Caused by: java.lang.NoSuchFieldError: Class org.openxmlformats.schemas.spreadsheetml.x2006.main.CTWorkbook does not have member field 'org.apache.xmlbeans.impl.schema.DocumentFactory Factory'

友情提示:

  • 未按格式要求发帖、描述过于简单的,会被直接删掉;
  • 描述问题请图文并茂,方便我们理解并快速定位问题;
  • 如果使用的不是master,请说明你使用的分支;
@yidao2000 yidao2000 added the help wanted Extra attention is needed label Feb 7, 2025
@lslvxy
Copy link

lslvxy commented Feb 8, 2025

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants