http://www.xxx.com/project/path/user.do?param=1111
springMVC中返回如下
request.getRequestURL():返回http://www.xxx.com/project/path/user.do
request.getRequestURI(): 返回/project/path/user.do
request.getServletPath(): 返回/path/user.do
request.getQueryString(): 返回param=1111
时间: 2024-12-24 03:22:48