问题一:
java.lang.IllegalStateException: Cannot load XLS transformer. Please make sure a Transformer implementation is in classpath
2020-05-22 11:48:30,944 ERROR [127.0.0.1] org.jxls.util.TransformerFactory(createTransformer/40)- Method createTransformer of org.jxls.transform.poi.PoiTransformer class thrown an Exception
java.lang.reflect.InvocationTargetException
jxls 官网写着: PoiTransformer is an implementation of Transformer interface based Apache POI.
存在 jxls 与 poi jar 问题 原版本为 3.17,更新为 4.0.1 就没问题了
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>4.0.1</version>
</dependency>
设计到的 一下poi 版本也会有影响
org.apache.poi
poi-ooxml
4.0.1
org.apache.poi
ooxml-schemas
1.4
问题二:
写了单元测试class Students ,student.name 的值传不进去 ,因为对象没有用public