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 后开始触发拒绝策略...");