From 04cdd18eda117949ae2919ce5144ad5dd2def9f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=B1=9F=E9=BE=99?= Date: Wed, 15 Jun 2022 17:44:11 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=96=B0=E5=A2=9Ebanner=E9=85=8D=E7=BD=AE?= =?UTF-8?q?):=20=E6=96=B0=E5=A2=9Ebanner=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增banner配置 --- .../config/DynamicThreadPoolCoreAutoConfiguration.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hippo4j-spring-boot/hippo4j-core-spring-boot-starter/src/main/java/cn/hippo4j/core/springboot/starter/config/DynamicThreadPoolCoreAutoConfiguration.java b/hippo4j-spring-boot/hippo4j-core-spring-boot-starter/src/main/java/cn/hippo4j/core/springboot/starter/config/DynamicThreadPoolCoreAutoConfiguration.java index 360a2846..0ccd107b 100644 --- a/hippo4j-spring-boot/hippo4j-core-spring-boot-starter/src/main/java/cn/hippo4j/core/springboot/starter/config/DynamicThreadPoolCoreAutoConfiguration.java +++ b/hippo4j-spring-boot/hippo4j-core-spring-boot-starter/src/main/java/cn/hippo4j/core/springboot/starter/config/DynamicThreadPoolCoreAutoConfiguration.java @@ -31,6 +31,7 @@ import cn.hippo4j.core.config.WebThreadPoolConfiguration; import cn.hippo4j.core.enable.MarkerConfiguration; import cn.hippo4j.core.executor.ThreadPoolNotifyAlarmHandler; import cn.hippo4j.core.executor.state.ThreadPoolRunStateHandler; +import cn.hippo4j.core.handler.DynamicThreadPoolBannerHandler; import cn.hippo4j.core.springboot.starter.monitor.DynamicThreadPoolMonitorExecutor; import cn.hippo4j.core.springboot.starter.monitor.LogMonitorHandler; import cn.hippo4j.core.springboot.starter.monitor.MetricMonitorHandler; @@ -194,4 +195,9 @@ public class DynamicThreadPoolCoreAutoConfiguration { public ThreadPoolAdapterRegister threadPoolAdapterRegister() { return new ThreadPoolAdapterRegister(bootstrapCoreProperties); } + + @Bean + public DynamicThreadPoolBannerHandler threadPoolBannerHandler() { + return new DynamicThreadPoolBannerHandler(bootstrapCoreProperties); + } }