摘要:
1 线程不安全演示 public class ThreadAndLockTest1 { private static int a = 0; public static void main(String[] args) throws InterruptedException { CountDownLa 阅读全文
摘要:
1 什么是循环依赖 如下,有类A和B,A中有一个类型为B的属性b,B中有一个类型为A的属性a,A和B相互依赖 public class A { private B b; public B getB() { return b; } public void setB(B b) { this.b = b; 阅读全文