Open LiuNet2 opened 5 years ago
这是个枚举类型,直接用ExcelType.HSSF就好了
这是个枚举类型,直接用ExcelType.HSSF就好了
不是的,你看下Jar包中, AutoPoi 写的是
在easypoi中,exportExcel是这样定义的 public static Workbook exportExcel(List<Map<String, Object>> list, ExcelType type) {
直接用ExportParams呢?
On Tue, Jun 18, 2019 at 7:06 PM LiuNet2 notifications@github.com wrote:
这是个枚举类型,直接用ExcelType.HSSF就好了
不是的,你看下Jar包中, AutoPoi 写的是 public static Workbook exportExcel(List<Map<String, Object>> list, String type) {
在easypoi中,exportExcel是这样定义的 public static Workbook exportExcel(List<Map<String, Object>> list, ExcelType type) {
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/zhangdaiscott/autopoi/issues/1?email_source=notifications&email_token=AAHYWSTGVWAPN6AP3ANIE4LP3C6TRA5CNFSM4HN2CZP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX6AW4Y#issuecomment-503057267, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHYWSXJ4Q2VLF4CMLFDJY3P3C6TRANCNFSM4HN2CZPQ .
是的不能比较, 字符串和枚举怎么比较
Jar包中 /**
我引用 return ExcelExportUtil.exportExcel(sheetsList, "HSSF"); 程序执行总是报错,后来发现,第二个参数 String type的值 虽然写着“HSSF”,但是
执行 ExcelType.HSSF.equals(type)的结果却是 false; 请帮忙看下,type 的值该如何些,我需要函数体内 执行的是
workbook = new HSSFWorkbook();
附:
在easypoi中,exportExcel是这样定义的
/**
easypoi中第二个参数是ExcelType type,不是String格式的,