上传者: 38699593
|
上传时间: 2022-02-22 15:51:12
|
文件大小: 34KB
|
文件类型: -
接口链接:https://github.com/binarywang
使用步骤:
将HttpServletRequest转成 ip
/**
* 获得请求地址ip
* @param httpservletrequest
* @return
*/
public static String getClientIP(HttpServletRequest httpservletrequest) {
if (httpservletrequest == null)
return null;
String s = httpservlet