NoSuchFieldError when reading Excel sheet in java

前端 未结 4 1041
情歌与酒
情歌与酒 2021-01-18 05:15

I\'ve followed a simple guide to constructing a workbook using Apache POI XSSF. Following the same guide I was able to WRITE an Excel sheet, however when attempting to read

4条回答
  •  孤街浪徒
    2021-01-18 05:58

    After looking around a bit. I browsed the documentation for APACHE POI, and saw that this was one of the constants (not that i know what that really means).

    But eventually, I realized all the tutorials I used were pre-2014.

    So I just changed my Maven POM to version 3.11 for both dependencies of apache-poi, and poi-ooxml.

    Its working now.

提交回复
热议问题