摘要: 首先来看一个标准的Spring配置文件 applicationContext.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi 阅读全文
posted @ 2016-12-09 23:48 子阙 阅读(3781) 评论(0) 推荐(1) 编辑
摘要: JAVA提供4种缓存线程池 newCachedThreadPool创建一个可缓存线程池,如果线程池长度超过处理需要,可灵活回收空闲线程,若无可回收,则新建线程。 newFixedThreadPool 创建一个定长线程池,可控制线程最大并发数,超出的线程会在队列中等待。 newScheduledThr 阅读全文
posted @ 2016-12-09 23:41 子阙 阅读(1397) 评论(0) 推荐(0) 编辑