打印路径修改

master
anthonywj 2 years ago
parent 3cae7526bc
commit eda9b590d1

@ -90,10 +90,10 @@ public class DownloadController {
} }
} }
} }
@GetMapping(value = "/udiwms/donwload/printFile") @GetMapping(value = "/udiwms/donwload/printFile")
public void printFile(HttpServletResponse response, @RequestParam String fileName) throws IOException { public void printFile(HttpServletResponse response, @RequestParam String fileName) throws IOException {
String url = filePath + "pdf/template/" + fileName;
String url="D:\\udi\\udiwms\\udiwmsfile\\pdf\\template\\"+fileName;
OutputStream os = null; OutputStream os = null;
try { try {
FileInputStream input = new FileInputStream(new File(url)); FileInputStream input = new FileInputStream(new File(url));

Loading…
Cancel
Save