简体   繁体   English

使用Java和属性文件读取Excel文件

[英]Read Excel file using Java with Property file

I am trying to read an Excel file using Java. 我正在尝试使用Java读取Excel文件。
I did this successfully by using org.apache.poi which is returning all of the data column wise. 我通过使用org.apache.poi成功地做到了这一点,它会明智地返回所有数据列。

But now I want to read the same excel file by column names only which will be given by the user. 但是现在我只想按列名读取相同的excel文件,而列名将由用户给出。 The twisting part is that I want to accept column names from a property file and only those names, which are in the property file, those column's data should be shown by the program. 令人困惑的是,我要接受属性文件中的列名,并且只接受那些在属性文件中的名称,这些列的数据应由程序显示。 So any suggestions? 有什么建议吗? How do I do it? 我该怎么做?

使用net.sf.supercsv库按标题/列名称读取EXL文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM