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