摘要: 一、懒加载 public class Bean1 { public Bean1() { System.out.println(this.getClass().getSimpleName() + ":" + this.toString() + " has been created"); } } Bea 阅读全文
posted @ 2018-12-01 19:56 柚子苹果果 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 一、singleton和prototype public class Bean1 { public Bean1() { System.out.println(this.getClass().getSimpleName() + ":" + this.toString() + " has been cr 阅读全文
posted @ 2018-12-01 15:06 柚子苹果果 阅读(259) 评论(0) 推荐(0) 编辑