/***获取当前网络请求ip*@paramrequest*@return*/publicStringgetIpAddr(HttpServletRequestrequest){StringipAddress=request.getHeader("x-forwarded-for");if(ipAddress==null||ipAddress.length()==0||"unknown".equalsIgnoreCase(ipAddress)){ipAddress=request.getHeader...
查看全文