How to convert my xlsx sheet to java object using Apache POI

前端 未结 9 1459
情书的邮戳
情书的邮戳 2020-12-14 22:06

can any one suggest me to convert my xlsx sheet to java object using Apache POI.

eq, my excel sheet contains two columns

  • emp_no emp_name
  • 01
9条回答
  •  一个人的身影
    2020-12-14 22:13

    Just found two libraries:

    • jxls-reader (but configuration is done entirely in XML... ugh!!!) http://jxls.sourceforge.net/reference/reader.html
    • excel-object-mapping this one is annotation only but unfortunately not really supported by its creator, e.g. still in "1.0-SNAPSHORT" or see the only pull request https://github.com/jittagornp/excel-object-mapping (Edit: repo has been removed since then, I found a clone here: https://github.com/pramoth/excel-object-mapping )

    Hoping it'll help someone.

提交回复
热议问题