01 2020 档案

摘要:https://www.cnblogs.com/sun2020/p/13961554.htmlpackage com.njhzlh.commons.utils; import com.njhzlh.slave.modules.jobs.TalcntcJob; import com.sun.mail. 阅读全文
posted @ 2020-01-18 14:07 冬天不眠 阅读(206) 评论(0) 推荐(0)
摘要:1 2 3 4 阅读全文
posted @ 2020-01-09 10:29 冬天不眠 阅读(501) 评论(0) 推荐(0)
摘要:调用外部接口获取用户ip地址 1 2 3 4 5 6 7 8 9 10 11 12 //通过搜狐接口获取用户的ip; $json = file_get_contents('http://pv.sohu.com/cityjson?ie=utf-8'); preg_match_all('/"cip"\s 阅读全文
posted @ 2020-01-06 15:36 冬天不眠 阅读(505) 评论(0) 推荐(0)
摘要:public String getIpAddress(HttpServletRequest request) { String ipAddress = request.getHeader("x-forwarded-for"); if(ipAddress == null || ipAddress.le 阅读全文
posted @ 2020-01-06 15:29 冬天不眠 阅读(1774) 评论(0) 推荐(0)
摘要:<dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>23.0</version></dependency> RateLimiter limiter = RateLimiter 阅读全文
posted @ 2020-01-03 16:06 冬天不眠 阅读(727) 评论(0) 推荐(0)