Convert excel format exception.You can try specifying the 'excelType' yourself
时间: 2023-10-18 17:22:22 浏览: 30
This exception usually occurs when trying to read an Excel file with a different format than the one specified in the code. To fix this, you can try specifying the 'excelType' parameter when reading the file.
For example, if you are using Apache POI to read an Excel file, you can specify the 'excelType' parameter as follows:
```
Workbook workbook = WorkbookFactory.create(new File("path/to/file.xlsx"), null, true, ExcelType.XSSF);
```
Here, the 'excelType' parameter is set to 'XSSF', which is the format used for Excel files with the extension '.xlsx'.
If you are using a different library to read Excel files, check the documentation to see if there is a similar parameter that you can set to specify the format of the file.