request获取路径记录
String path = request.getContextPath();
String basePath = request.getScheme()+”://”+request.getServerName()+”:”+request.getServerPort()+path+”/”;
String remoteAddress=request.getRemoteAddr();
String servletPath=request.getServletPath();
String realPath=request.getRealPath(“/”);
String remoteUser=request.getRemoteUser();
String requestURI=request.getRequestURI();
path:/wintime_test
basePath:http://localhost:8080/wintime_test/
remoteAddr:0:0:0:0:0:0:0:1
servletPath:/user/checkLoginInfo65453
realPath:D:\Java\newEclipse\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp3\wtpwebapps\wintime_test\
remoteUser:null
requestURI:/wintime_test/user/checkLoginInfo65453