
JAVA
文章平均质量分 91
刘liurs
这个作者很懒,什么都没留下…
展开
-
HashMap原理之手撕源代码
HashMap是我们每个程序员非常熟悉的一个集合,也是面试中的高频面试题。所以了解其原理及底层源代码,是非常必要的。一、首先,我们说一下数组和链表1、数组:数组的内存是连续的,连续的内存空间,因为有下标所以查询效率高,但是插入删除慢。没办法快速扩容2、链表:不是连续内存,每块内存都有一个引用空间,保留下一个内存的地址。只能通过head元素去拿下一个元素,索引效率低。那有没有一种方式整合两种数据结构的优势?散列表。那什么是散列表核心理论:Hash也称散列、哈希,对应的英文都是Hash。基本原理就是原创 2021-12-23 14:28:24 · 917 阅读 · 3 评论 -
Unable to map duplicate endpoint operations: [MBean call ‘topology‘] to topologyEndpoint 问题解决
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pathMappedEndpoints' defined in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/web/WebEndpointAutoConfiguration.class]: Bean instantiation原创 2020-12-10 14:51:54 · 1214 阅读 · 2 评论