版本号:
2.2.1
问题描述:
jeecg-boot 打成jar包放服务器后, 读取不到excel模版文件
截图&代码:
TemplateExportParams params = new TemplateExportParams();
params.setTemplateUrl(**relativePath**);
params.setScanAllsheet(true);
ModelAndView mv = new ModelAndView(new JeecgTemplateExcelView());
mv.addObject(TemplateExcelConstants.MAP_DATA, productMap);
mv.addObject(TemplateExcelConstants.FILE_NAME, templateName);
mv.addObject(TemplateExcelConstants.PARAMS, params);
mv.addObject(TemplateExcelConstants.CLASS, TBaseProductEntity.class);
2020-07-24 15:34:59.452 [http-nio-6080-exec-9] ERROR org.jeecgframework.poi.cache.manager.FileLoade:58 - home/eps/jeecg-boot/tts-module-system-2.2.0.jar!/BOOT-INF/classes!/import/订单导入/FBA订单模板.xlsx (没有那个文件或目录)
java.io.FileNotFoundException: home/eps/jeecg-boot/tts-module-system-2.2.0.jar!/BOOT-INF/