摘要: public class Test { // 饿汉式,线程安全,但提前加载,浪费内存 private static Test instance = new Test(); private static Test getInstance() { return instance; } private s 阅读全文
posted @ 2022-11-10 10:34 lixuelong 阅读(26) 评论(0) 推荐(0) 编辑