摘要: 单例模式的定义:保证一个类仅有一个实例,并提供一个访问它的全局访问点! 懒汉,线程不安全 public class Singleton { private static Singleton instance; private Singleton (){} public static synchron 阅读全文
posted @ 2020-05-06 15:33 Mr.石 阅读(330) 评论(0) 推荐(0)