JSP中如何获取当前文件的绝对路径

2025-04-15 12:30:48
推荐回答(1个)
回答1:

String path=getServletContext().getRealPath("/");  
System.out.println(path);