Fork me on GitHub
摘要: 简介 懒加载指在多线程环境中,只创建一个实例对象。 ###代码 public class LazySingleton { private static volatile LazySingleton instance= null; public static LazySingleton getSing 阅读全文
posted @ 2022-02-18 19:37 晨度 阅读(46) 评论(0) 推荐(0) 编辑