easyexcel 支持Native-Image以及优化建议

fivyi3re  于 3个月前  发布在  其他
关注(0)|答案(9)|浏览(78)

在使用Spring Native和非Spring项目的Native的时候,在打Native包的时候会失败,大部分问题都集中在poi和ehcache的使用上,同时还发现了一些依赖方面的可调整的方面,,所以建议做如下修改来处理这些问题。
1、将easyexcel core对于spring的依赖去除,使用扩展的方式引入。
2、将easyexcel core对于ehcache的依赖去除,使用扩展的方式引入。
3、目前与poi的版本差距挺大的,建议将poi升级,若存在兼容性的问题可以使用多个版本的适配扩展包来实现。
4、然后,适配目前native过程中的问题。

不知道这些想法是否符合easyexcel的发展,这些建议是否符合easyexcel的初衷。

ilmyapht

ilmyapht2#

您好,请问目前是在尝试支持native-image吗?我也遇到了相同的问题 @linghengqian

vyu0f0g1

vyu0f0g13#

@Q11shiyi I don't see a problem after collecting GraalVM reachability metadata for Easyexcel. If you think there is a problem, you can open a new issue after providing a minimal reproducible unit test.

qij5mzcb

qij5mzcb4#

现在有支持graalvm的版本么

r55awzrz

r55awzrz5#

收集 Easyexcel 的 GraalVM 可访问性元数据后,我没有看到问题。如果您认为存在问题,可以在提供最小可重现的单元测试后打开一个新问题。

Hello, where can I obtain the GraalVM accessibility metadata for Easyexcel

lg40wkob

lg40wkob6#

收集 Easyexcel 的 GraalVM 可访问性元数据后,我没有看到问题。如果您认为存在问题,可以在提供最小可重现的单元测试后打开一个新问题。

您好,我在哪里可以获得 Easyexcel 的 GraalVM 可访问性元数据

@linghengqian

eufgjt7s

eufgjt7s7#

  • @CV-Devlau You need to write a unit test suite for easyexcel and collect these jsons through the tracing agent integrated by graalvm native buildtools. I don't have time recently, and I may need to wait until graalvm ce for jdk29 is released.
zbq4xfa0

zbq4xfa08#

  • @CV-Devlau You need to write a unit test suite for easyexcel and collect these jsons through the tracing agent integrated by graalvm native buildtools. I don't have time recently, and I may need to wait until graalvm ce for jdk29 is released.

@linghengqian I saw that you mentioned that you collected a portion of metadata and tested it without any issues. I would like to test this portion of metadata, which may be more complete than what I obtained from writing my own tests

ccgok5k5

ccgok5k59#

@linghengqian I saw that you mentioned that you collected a portion of metadata and tested it without any issues. I would like to test this portion of metadata, which may be more complete than what I obtained from writing my own tests

相关问题