本文共 118 字,大约阅读时间需要 1 分钟。
在JSP中,如果要使用到绝对路径,使用
<%=request.getContextPath()%>
下面一句话,可以访问到项目下,WebRoot的目录。
转载于:https://blog.51cto.com/lailai/1587995