request.getSchema(),返回的是当前连接使用的协议,一般应用返回的是http、SSL返回的是https;
request.getServerName(),返回当前页面所在的服务器的名字;
request.getServerPort(),返回当前页面所在的服务器使用的端口,80;
request.getContextPath(),返回当前页面所在的应用的名字。
request.getSchema(),返回的是当前连接使用的协议,一般应用返回的是http、SSL返回的是https;
request.getServerName(),返回当前页面所在的服务器的名字;
request.getServerPort(),返回当前页面所在的服务器使用的端口,80;
request.getContextPath(),返回当前页面所在的应用的名字。