request.getRemoteAddr() 得到ip为0:0:0:0:0:0:0:1 的解决方法

原文地址:http://www.cnblogs.com/bingya/articles/3135721.html

我用的最后一种,127.0.0.1代替localhost