有關java中讀取有上傳的Excel文件,上傳的Excel文件後綴可分爲xls,xlsx 1:.xls後綴的文件在獲取Workbook時應該java
//file爲上傳文件 Workbook wb_input = new HSSFWorkbook(file.getInputStream());
2:.xlsx後綴的文件在獲取Workbook時code
Workbook wb_input = new XSSFWorkbook(file.getInputStream());