摘要: 1、加载指定资源路径下的配置文件的方法 (1)Class.getResourceAsStream(resource) resource = "config.xml" 用法如下:你在包com.test.mycode写了一个MyTest类,那么我们可以使用MyTest.class.getResource 阅读全文
posted @ 2018-06-30 15:53 将王相 阅读(145) 评论(0) 推荐(0)
摘要: 一、线程池源码如下 1、阻塞任务队列 BlockingQueue public interface BlockingQueue<E> { boolean offer(E e); public E take();} 阻塞任务队列实现类 LinkedBlockingQueue import java.u 阅读全文
posted @ 2018-06-30 13:14 将王相 阅读(1041) 评论(0) 推荐(0)