jeesite导出Excel Minimum column number is 0

问题
今天在用jeesite(poi)做导出的时候遇到一些问题!记录一下.
java.lang.IllegalArgumentException: Minimum column number is 0
at org.apache.poi.ss.util.CellRangeAddressBase.validateColumn(CellRangeAddressBase.java:73)
at org.apache.poi.ss.util.CellRangeAddressBase.validate(CellRangeAddressBase.java:54)
at org.apache.poi.xssf.usermodel.XSSFSheet.addMergedRegion(XSSFSheet.java:270)
at org.apache.poi.xssf.streaming.SXSSFSheet.addMergedRegion(SXSSFSheet.java:342)
at com.sdfyzx.common.utils.excel.ExportExcel.initialize(ExportExcel.java:200)
at com.sdfyzx.common.utils.excel.ExportExcel.(ExportExcel.java:163)
at com.sdfyzx.common.utils.excel.ExportExcel.(ExportExcel.java:84)
at com.sdfyzx.modules.echarts.web.EchartsController.exportFile(EchartsController.java:320)
at com.sdfyzx.modules.echarts.web.EchartsController$$FastClassBySpringCGLIB$$887abd62.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:640)



原因是没有加注解
@ExcelField (title="所属区域", align=2, sort=10,dictType="xx")   
1、title 导出字段标题,String
2 align 导出字段对齐方式(0:自动;1:靠左;2:居中;3:靠右), int 
3 sort 导出字段字段排序(升序), int
4 dictType 如果是字典类型,请设置字典的type值 , String

你可能感兴趣的:(Jeesite)