例如输入的url如下:
http://localhost:8080/web/dkb/kn/control.do?action=expShare&expshaId=208548
得到的信息如下:
request.getRequestURL() -> http://localhost:8080/web/dkb/kn/control.do
request.getContextPath() -> /web
request.getQueryString() -> action=expShare&expshaId=208548
request.getRequestURI() -> /web/dkb/kn/control.do
request.getServletPath() -> /dkb/kn/control.do