摘要: 1 @RequestMapping("fileDelete") 3 public void fileDelete(HttpServletRequest request, HttpServletResponse response) throws IOException { 4 String filep 阅读全文
posted @ 2021-09-09 13:51 晓*雨 阅读(43) 评论(0) 推荐(0)
摘要: 后台 1 @RequestMapping("getPdfStreamFromRootPath") 2 public void getPdfStreamFromRootPath(HttpServletRequest request,HttpServletResponse response) throw 阅读全文
posted @ 2021-09-09 11:35 晓*雨 阅读(138) 评论(0) 推荐(0)
摘要: 获得当前运行文件在服务器上的绝对路径 1.request.getSession().getServletContext().getRealPath("/"); 2.ContextLoader.getCurrentWebApplicationContext().getServletContext(). 阅读全文
posted @ 2021-09-09 09:34 晓*雨 阅读(195) 评论(0) 推荐(0)