摘要: 一、单例模式 1、饿汉模式 public class Singleton { private static Singleton uniqueInstance = new Singleton(); private Singleton() { } } 2、懒汉式-线程安全 public class Si 阅读全文
posted @ 2019-10-11 20:10 jet-software 阅读(307) 评论(0) 推荐(0) 编辑