|
楼主 |
发表于 2018-3-15 14:27:00
|
显示全部楼层
admin 发表于 2018-3-15 09:15
引用2.1.4 这个版本,已经支持数字类型:
/**
* 导出类型 1 是文本 2 是图片,3是函数,4是数字 默认是文 ...
<!--poi 工具类 -->
<jeasypoi.version>2.1.4</jeasypoi.version>
@Excel(name = "销售额",type=4)
private Float payMoney;
我换了版本然后也设置了类型但是却报错
javax.imageio.IIOException: Can't read input file!
at javax.imageio.ImageIO.read(Unknown Source)
at org.jeecgframework.poi.excel.export.base.ExcelExportBase.createImageCell(ExcelExportBase.java:162)
at org.jeecgframework.poi.excel.export.base.ExcelExportBase.createCells(ExcelExportBase.java:108)
at org.jeecgframework.poi.excel.export.ExcelExportServer.createSheet(ExcelExportServer.java:146)
at org.jeecgframework.poi.excel.ExcelExportUtil.exportExcel(ExcelExportUtil.java:62)
at org.jeecgframework.poi.excel.view.JeecgSingleExcelView.renderMergedOutputModel(JeecgSingleExcelView.java:59) |
|