EasyExcel冲突问题,java.lang.NosuchFieldError: Factory
我在项目中使用EasyExcel,本以为是一个简单的导出功能,应该很快。但是问题出现了,导出的时候报错
com.alibaba.excel.exception.ExcelGenerateException Create breakpoint
java.lang.NosuchFieldError: Factory
at com.alibaba.excel.write.ExcelBuilderImpl.<init>(ExcelBuilderImpl.java:42)
at com.alibaba.excel.ExcelWriter.<init>(ExcelWriter.java:36)
at com.alibaba.excel.write.builder.ExcelWriterBuilder.build(ExcelWriterBuilder.java:114)
at com.alibaba.excel.write.builder.ExcelWriterBuilder.sheet(ExcelWriterBuilder.java:130)
at com.alibaba.excel.write.builder.ExcelwriterBuilder.sheet(ExcelWriterBuilder.java:126)
at com.rk.jdsn.target.controller.CarbonTargetTrackingController.targetTrackingListExport(CarbonTarqetTrackingController.java:75)
<14 internal
lines>
at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:527) <1 internal line>
at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:614)
at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:7