java web如何获取客户端的请求ip时间:2021-03-08 13:16:11String ipAddress = request.getHeader("X-FORWARDED-FOR");if (ipAddress == null) { ipAddress = request.getRemoteAddr();}