- 博客(1)
- 资源 (8)
- 问答 (1)
- 收藏
- 关注
原创 单例模式详解
单例模式 1)饿汉式 /** * 饿汉式单例 */ public class Hungry { /** * 可能会浪费空间 */ private Hungry(){ } private final static Hungry hungry = new Hungry(); public static Hungry getInstance(){ return hungry; } } 2)DCL懒汉式 懒汉式最基础模
2022-01-19 17:37:20 293
为什么我用junit写单元测试,Rollback没有用,数据库不会回滚
2017-12-04
TA创建的收藏夹 TA关注的收藏夹
TA关注的人