2020年4月29日
posted @ 2020-04-29 15:45
花非花-雾非雾
阅读(2826)
推荐(0)
2019年11月8日
摘要:
private void getIpAddr(HttpServletRequest request) { String ip = request.getHeader("x-forwarded-for"); if (ip == null || ip.length() == 0 || "unknown"
阅读全文
posted @ 2019-11-08 14:20
花非花-雾非雾
阅读(461)
推荐(0)
2019年11月7日
摘要:
import java.util.ArrayList;import java.util.Hashtable;import java.util.List;import java.util.Map; import net.sourceforge.pinyin4j.PinyinHelper;import
阅读全文
posted @ 2019-11-07 15:19
花非花-雾非雾
阅读(384)
推荐(0)
2019年7月23日
posted @ 2019-07-23 17:55
花非花-雾非雾
阅读(1)
推荐(0)
2019年7月1日
摘要:
#运行用户,默认即是nginx,可修改user root;#nginx进程,一般设置为和cpu核数一样worker_processes 1; #error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/erro
阅读全文
posted @ 2019-07-01 10:06
花非花-雾非雾
阅读(305)
推荐(0)
2019年6月26日
摘要:
https://blog.csdn.net/qq_34560242/article/details/80394266 https://blog.csdn.net/qq_28289405/article/details/81279742 https://www.cnblogs.com/develope
阅读全文
posted @ 2019-06-26 16:18
花非花-雾非雾
阅读(577)
推荐(0)
2019年6月25日
posted @ 2019-06-25 17:42
花非花-雾非雾
阅读(3)
推荐(0)
posted @ 2019-06-25 15:05
花非花-雾非雾
阅读(1)
推荐(0)
posted @ 2019-06-25 10:05
花非花-雾非雾
阅读(2)
推荐(0)
2019年6月24日
摘要:
问题1:HashM安排的初始长度,为什么? 初始长度是 16,每次扩展或者是手动初始化,长度必须是 2的幂。 因为: index = HashCode(Key) & (length - 1), 如果 length是 2的 幂的话,则 length - 1就是 全是 1的二进制数,比如 16 - 1
阅读全文
posted @ 2019-06-24 11:28
花非花-雾非雾
阅读(873)
推荐(0)