04 2022 档案
摘要:创建springboot项目,选择图片中所示依赖 mybatis-plus生成的依赖 <!-- mybatis_plus --> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</a
阅读全文
摘要:强引用 写法:Object obj=new Object() 引用强度:最强 只要被引用着,就不会被gc(垃圾回收)回收掉。 软引用 写法:SoftReference<String> sr = new SoftReference<String>(new String("软")); 引用强度:第二 如
阅读全文