request.getContextPath()是在开发Web项目时,经常用到的方法,其作用是获取当前的系统路径。 转载于:https://www.cnblogs.com/VivianTuan/p/5127263.html