摘要:
sqlserver中: Oracle MySQL: 阅读全文
摘要:
1、CountDownLatch 等待多线程完成 它的构造函数接收一个int参数作为计数器,想等待N个点,就传入N。 当调用CountDownLatch的countDown()方法时,N就会减1,直至减为0。 使用await()方法等待,当N的值变为0时,执行await的线程继续执行 2、Cycli 阅读全文
摘要:
Spring启动,查找并加载需要被Spring管理的bean,进行Bean的实例化 Bean实例化后对将Bean的引入和值注入到Bean的属性中(IOC) 如果Bean实现了BeanNameAware接口的话,Spring将Bean的Id传递给setBeanName()方法 如果Bean实现了Bea 阅读全文
摘要:
1、要排序的对象类实现Comparable<>接口,重写compareTo()方法 2、使用Comparator匿名内部类实现 1、Class Student implements Comparable<Student >{ //Student 类自己的成员变量(属性),及构造方法 @Overrid 阅读全文