jsp文件资源存放路径问题 项目explorer如下:获取项目根目录 项目explorer如下: 获取项目根目录 需要用到<%=request.getContextPath()%>,例如: <%=request.getContextPath()%>/resource/img/删除.png