Java web工程獲得文件或圖片路徑方法

String realPath = req.getHttpRequest().getServletContext().getRealPath("/page/pdf/backManageManual.pdf"); 文件所在路徑如下:
相關文章
相關標籤/搜索