服务器上实现方式 1.当初的项目直接部署在服务器上,PDF模板和生成的PDF文件都在服务上。实现方式如下: public AjaxResult createReport(OverSeasSelectionCreatePdfParams pdfParams) throws IOException { //模板路径 -直接在配置文件中 设置模板路径:/export/apps/modelSelection/uploadPath String inputUrl = ""; File file = new File(overseaPdfUrl);//overseaPdfUrl 通过@Value 从配置文件中区 inputUrl = file.getAbsolutePath(); log.info("模板路径:" + inputUrl); //生成的文件路径 String outputUrl = RuoYiConfig.getModelSelectPdfPath() + "/" + System.currentTimeMillis() + "model.pdf"; //text参数...