标签:java tps The rem forward eth request == Servle
public String getRemortIP(HttpServletRequest request) {
if (request.getHeader("x-forwarded-for") == null) {
return request.getRemoteAddr();
}
return request.getHeader("x-forwarded-for");
}
标签:java tps The rem forward eth request == Servle
原文地址:https://www.cnblogs.com/aiyouzi/p/12082816.html