String realPath = req.getHttpRequest().getServletContext().getRealPath("/page/pdf/backManageManual.pdf"); 文件所在路径如下: