java读取Excel报错:Exception in thread "main" java.lang.IllegalStateException: Cell A2 is not part of an array formula.

用java读取Excel里面的数据的内容时报错:Exception in thread "main" java.lang.IllegalStateException: Cell A2 is not part of an array formula.

原来写法:

解决方式:

原文地址:https://www.cnblogs.com/time1997/p/12403437.html