本文主要是介绍EasyExcel ExcelGenerateException: The index of 'xx' and 'xx' must be inconsistent,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
EasyExcel 导出Excel,报错
//原因是两个字段的index索引值都是0,导致异常
@ExcelProperty(value = "IP总量",index =0)
int allCount = 0;
@ExcelProperty(value = "Socket通过量",index =0)
int checkSocketCount = 0;
改一下索引值,从0开始一次递增1
//修改index索引值
@ExcelProperty(value = "IP总量",index =0)
int allCount = 0;
@ExcelProperty(value = "Socket通过量",index =1)
int checkSocketCount = 0;
这篇关于EasyExcel ExcelGenerateException: The index of 'xx' and 'xx' must be inconsistent的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!