11 2023 档案

LogFacade---SLF4J
摘要:概述 Simple Logging Facade for Java(SLF4J); 用作各种日志框架(eg:java.util.logging,logback,log4j)的简单外观或抽象,允许最终用户在部署 时插入所需的日志记录框架; 不提供完整的日志记录解决方案; 使用SLF4J无法执行配置ap 阅读全文

posted @ 2023-11-29 18:26 anpeiyong 阅读(17) 评论(0) 推荐(0) 编辑

log
摘要:https://www.pdai.tech/md/develop/package/dev-package-x-log.html http://51gjie.com/javaweb/173 阅读全文

posted @ 2023-11-29 11:25 anpeiyong 阅读(5) 评论(0) 推荐(0) 编辑

SPI
摘要:概述 SPI(Service Provider Interface) JDK内置的一种 服务提供发现机制; 用来 启用框架扩展和替换组件; 当服务的提供者提供了一种接口的实现之后,需要在classpath下的META-INF/services/目录里创建一个以服务接口命名的文件,这个文件里的内容就是 阅读全文

posted @ 2023-11-28 16:06 anpeiyong 阅读(17) 评论(0) 推荐(0) 编辑

finalize机制
摘要:概述 public class Object { protected void finalize() throws Throwable { } } Called by the garbage collector on an object when garbage collection determi 阅读全文

posted @ 2023-11-28 10:40 anpeiyong 阅读(5) 评论(0) 推荐(0) 编辑

Guava---Cache
摘要:Cache 概述 A semi-persistent mapping from keys to values. Cache entries are manually added using {@link #get(Object, Callable)} or {@link #put(Object, O 阅读全文

posted @ 2023-11-27 18:47 anpeiyong 阅读(25) 评论(0) 推荐(0) 编辑

Map---WeakHashMap
摘要:概述 Hash table based implementation of the <tt>Map</tt> interface, with <em>weak keys</em>.An entry in a <tt>WeakHashMap</tt> will automatically be rem 阅读全文

posted @ 2023-11-24 19:55 anpeiyong 阅读(4) 评论(0) 推荐(0) 编辑

Reference
摘要:Reference 概述 Abstract base class for reference objects. This class defines the operations common to all reference objects. Because reference objects a 阅读全文

posted @ 2023-11-24 19:55 anpeiyong 阅读(88) 评论(0) 推荐(0) 编辑

Druid
摘要:https://github.com/alibaba/druid/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98 阅读全文

posted @ 2023-11-22 15:48 anpeiyong 阅读(5) 评论(0) 推荐(0) 编辑

数据库连接池数量设置多少合适
摘要:结论 连接池数量 = ((核心数 * 2) + 有效磁盘数) 原因 对于单核CPU的机器,顺序执行A和B 永远比 通过时间片切换 “同时”执行A和B 快; 一旦线程的数量超过 CPU核数,继续增加线程数,会导致线程上下文切换产生额外的开销; 寻找数据库性能瓶颈的3个因素 CPU 磁盘IO 对于IO密 阅读全文

posted @ 2023-11-22 15:45 anpeiyong 阅读(240) 评论(0) 推荐(0) 编辑

switch(jdk8)
摘要:本质 字节码 int类型 1 int = 4 byte public static void switchTest(int a) { switch (a) { case 1: System.out.println("1"); break; case 2: System.out.println("2" 阅读全文

posted @ 2023-11-17 15:54 anpeiyong 阅读(148) 评论(0) 推荐(0) 编辑

Map---IdentityHashMap
摘要:总结 Java 中的一种特殊类型的哈希表,它基于对象的引用(即对象的内存地址)而不是对象的内容来进行键值对的存储和查找。这意味着在 IdentityHashMap 中,两个对象即使内容相同,但如果它们不是同一个对象实例(即内存地址不同),也会被视为不同的键。 基于引用比较: IdentityHash 阅读全文

posted @ 2023-11-15 14:42 anpeiyong 阅读(13) 评论(0) 推荐(0) 编辑

List---Deque-LinkedList
摘要:概述 Doubly-linked list implementation of the {@code List} and {@code Deque} interfaces. Implements all optional list operations, and permits all elemen 阅读全文

posted @ 2023-11-10 15:52 anpeiyong 阅读(7) 评论(0) 推荐(0) 编辑

Queue&Deque
摘要:Queue 概述 A collection designed for holding elements prior to processing.Besides basic {@link java.util.Collection Collection} operations, queues provi 阅读全文

posted @ 2023-11-10 15:22 anpeiyong 阅读(11) 评论(0) 推荐(0) 编辑

Iterable&Iterator&Collection
摘要:Iterable 概述 Implementing this interface allows an object to be the target of the "for-each loop" statement. 实现Iterable接口 允许一个对象 作为 foreach遍历的目标; publi 阅读全文

posted @ 2023-11-10 10:05 anpeiyong 阅读(5) 评论(0) 推荐(0) 编辑

Set&List&Map
摘要:Map 概述 An object that maps keys to values. A map cannot contain duplicate keys; each key can map to at most one value. Map将key映射到value; Map的key不能重复,每个 阅读全文

posted @ 2023-11-09 19:39 anpeiyong 阅读(8) 评论(0) 推荐(0) 编辑

Set---HashSet-LinkedHashSet
摘要:概述 Hash table and linked list implementation of the <tt>Set</tt> interface, with predictable iteration order. This implementation differs from <tt>Has 阅读全文

posted @ 2023-11-09 11:24 anpeiyong 阅读(10) 评论(0) 推荐(0) 编辑

Set---SortedSet-NavigableSet-TreeSet
摘要:SortedSet 概述 A {@link Set} that further provides a <i>total ordering</i> on its elements.The elements are ordered using their {@linkplain Comparable n 阅读全文

posted @ 2023-11-08 19:05 anpeiyong 阅读(12) 评论(0) 推荐(0) 编辑

Map---SortedMap-NavigableMap-TreeMap
摘要:SortedMap 概述 A {@link Map} that further provides a <em>total ordering</em> on its keys.The map is ordered according to the {@linkplain Comparable natu 阅读全文

posted @ 2023-11-08 16:19 anpeiyong 阅读(20) 评论(0) 推荐(0) 编辑

Set---HashSet
摘要:概述 This class implements the <tt>Set</tt> interface, backed by a hash table (actually a <tt>HashMap</tt> instance). It makes no guarantees as to the i 阅读全文

posted @ 2023-11-08 11:27 anpeiyong 阅读(6) 评论(0) 推荐(0) 编辑

Map---HashMap---jdk8
摘要:总结 为什么取模运算只需要看对应二进制的后几位? 比如,a % b 正常取模,只需要看 a - b*n,只需要看 <b的值; 换算成 二进制, b 是 2的几次方, HashMap的key有什么要求? 需要实现 equals和hashcode 方法; Hash函数是怎么实现的? static fin 阅读全文

posted @ 2023-11-08 10:23 anpeiyong 阅读(13) 评论(0) 推荐(0) 编辑

Map---HashMap-LinkedHashMap
摘要:概述 LinkedHashMap是HashMap的直接子类; 二者唯一的区别是LinkedHashMap在HashMap的基础上,采用双向链表(doubly-linked list)的形式将所有entry连接起来,这样是为保证元素的迭代顺序跟插入顺序相同。 上图给出了LinkedHashMap的结构 阅读全文

posted @ 2023-11-07 11:02 anpeiyong 阅读(123) 评论(0) 推荐(0) 编辑

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示