public static RequestPath getRequestPathObject(HttpServletRequest req) {
        String url = req.getPathInfo();
        if (null == url)
            url = req.getServletPath();
        return getRequestPathObject(url);
    }
public static RequestPath getRequestPathObject(HttpServletRequest req) {
        String url = req.getPathInfo();
        if (null == url)
            url = req.getServletPath();
        return getRequestPathObject(url);
    }
public static RequestPath getRequestPathObject ( HttpServletRequest req ) { String url = req . getPathInfo ( ) ; if ( null == url ) url = req . getServletPath ( ) ; return getRequestPathObject ( url ) ; }
获取当前请求的路径，并去掉后缀

@param req
HTTP 请求对象
获取当前请求的路径，并去掉后缀