2017年12月13日

摘要: public class Singleton { private Singleton(){}//私有化构造器 private static Singleton instance = null; //类的内部创建对象 public static Singleton getInstance(){ //暴露公共的get方法 if(inst... 阅读全文

posted @ 2017-12-13 19:39 冠军33 阅读(209) 评论(0) 推荐(0) 编辑


Copyright © 2024 冠军33
Powered by .NET 8.0 on Kubernetes