jetbrick-commons/src/main/java/jetbrick/web/servlet/RequestUtils.java
public static String getPathInfo(HttpServletRequest request) {
        String path = request.getPathInfo();
        if (path == null) {
            path = request.getServletPath();
        } else {
            path = request.getServletPath() + path;
        }
        if (path == null || path.length() == 0) {
            path = "/";
        }
        return path;
    }
public static String getPathInfo(HttpServletRequest request) {
        String path = request.getPathInfo();
        if (path == null) {
            path = request.getServletPath();
        } else {
            path = request.getServletPath() + path;
        }
        if (path == null || path.length() == 0) {
            path = "/";
        }
        return path;
    }
public static String getPathInfo ( HttpServletRequest request ) { String path = request . getPathInfo ( ) ; if ( path == null ) { path = request . getServletPath ( ) ; } else { path = request . getServletPath ( ) + path ; } if ( path == null || path . length ( ) == 0 ) { path = "/" ; } return path ; }
获取相对 ContextPath 的 requestURI
获取相对 ContextPath 的 requestURI