摘要:
一、获取服务器IP 1 String addr = InetAddress.getLocalHost().getHostAddress();//获得本机IP 二、获取客户端本机IP 阅读全文
posted @ 2016-12-05 10:47
LinVan
阅读(30791)
评论(3)
推荐(0)
摘要:
1 从Request对象中可以获取各种路径信息,以下例子: 2 假设请求的页面是index.jsp,项目是WebDemo,则在index.jsp中获取有关request对象的各种路径信息如下 3 String path = request.getContextPath(); 4 String basePath = request.getSche... 阅读全文
posted @ 2016-12-05 09:56
LinVan
阅读(6153)
评论(0)
推荐(0)
浙公网安备 33010602011771号