package io.github.xuse.test;

import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

import org.junit.Test;

public class ThreadPoolTest {
	@Test
	public void test1() throws InterruptedException {
		ExecutorService executor = new ThreadPoolExecutor(2, 10, 60, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>());
		final CountDownLatch counter=new CountDownLatch(10); 
		for (int i = 0; i < 10; i++) {
			final int id = i;
			executor.execute(new Runnable() {
				public void run() {
					System.out.println(id + "号线程开始工作");
					try {
						Thread.sleep(1000);
					} catch (InterruptedException e) {
					}
					counter.countDown();
				}
			});
		}
		counter.await();

	}
}

@@ -244,24 +244,88 @@
 .TimeUnit;%0A%0A
+import jef.common.log.LogUtil;%0Aimport jef.tools.ResourceUtils;%0A%0A
 import org.j
@@ -905,10 +905,12 @@
 ();%0A%0A%09%7D%0A
+%09%0A
 %7D%0A

Modify version of druid.