HttpServletRequest获取到的各个path信息

request.getContextPath: 
request.getPathInfo: /path-info
request.getServletPath: /servlet-path
request.getRequestURL: http://domain/servlet-path/path-info
request.getRequestURI: /servlet-path/path-info
 

你可能感兴趣的:(Web,java servlet)