From cd46cfeea28b790da55f5cdd3f92f0464ffa7146 Mon Sep 17 00:00:00 2001 From: "chen.ma" Date: Thu, 15 Jul 2021 12:45:04 +0800 Subject: [PATCH] =?UTF-8?q?optimize:=20=E6=B3=A8=E9=87=8A=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E7=BA=BF=E7=A8=8B=E6=B1=A0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/dynamic/threadpool/example/config/ThreadPoolConfig.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/example/src/main/java/io/dynamic/threadpool/example/config/ThreadPoolConfig.java b/example/src/main/java/io/dynamic/threadpool/example/config/ThreadPoolConfig.java index c7f27b59..cf5e25d7 100644 --- a/example/src/main/java/io/dynamic/threadpool/example/config/ThreadPoolConfig.java +++ b/example/src/main/java/io/dynamic/threadpool/example/config/ThreadPoolConfig.java @@ -6,7 +6,6 @@ import lombok.extern.slf4j.Slf4j; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -import javax.annotation.PostConstruct; import java.util.Random; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; @@ -44,7 +43,7 @@ public class ThreadPoolConfig { return new DynamicThreadPoolWrap(customPoolPrefix); } - @PostConstruct + // @PostConstruct @SuppressWarnings("all") public void testExecuteTask() { log.info("测试线程池运行时状态接口, 30s 后开始触发拒绝策略...");