我尝试使用Apache库读取excel文件,并得到以下错误:
org.apache.poi.xssf.usermodel.XSSFCell.typeMismatch(XSSFCell.java:845) at org.apache.poi.xssf.usermodel.XSSFCell.getRichStringCellValue(XSSFCell.java:294) at org.apache.poi.xssf.usermodel.XSSFCell
我需要以这样的方式检索数据,我可以获得值,并将其传递到测试网页的代码中的任何地方。这是我需要获取的代码:我只需要定义行和列,它应该使用任何方法(如getExceldata(1,2) )从Excel sheet中获取数据
public String cellValue(String filepath,String sh