String nethod = request.getMethod();//获取请求方式: final String contextPath = request.getContextPath();//获取项目名 String servletPath = request.getServletPath();//获取网名 也就是/login String requestURI = request.getRequestURI();//获取访问路径: 项目名+servlet StringBuffer requestURL = request.getRequestURL();// 获取完整路径: