随笔分类 -  java

摘要:JDK 1.8版本hash原代码 static final int hash(Object key) { int h; return (key == null) ? 0 : (h = key.hashCode()) ^ (h >>> 16); } 1.首先右移16位数 2.异或高位 3.&计算下标 阅读全文
posted @ 2024-05-07 23:02 辉辉、 阅读(4) 评论(0) 推荐(0) 编辑
摘要:为什么java的hashcode的选用31次方? 以下是java源码部分 public int hashCode() { int h = hash; if (h == 0 && value.length > 0) { char val[] = value; for (int i = 0; i < v 阅读全文
posted @ 2024-05-07 22:41 辉辉、 阅读(39) 评论(0) 推荐(0) 编辑
摘要:https://start.aliyun.com/ 阅读全文
posted @ 2024-01-14 15:00 辉辉、 阅读(18) 评论(0) 推荐(0) 编辑
摘要:注解开发 <mappers> <!-- 直接读取映射文件 --> <!-- <mapper resource="kong/UserMapper.xml"/>--> <!-- 获取dao文件 xml文件存放的路径和dao接口的包名要对应 --> <package name="com.kong.dao" 阅读全文
posted @ 2023-12-17 19:45 辉辉、 阅读(4) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示