From 6643ced991e2ac90b09cebca99c67bf9d58e157c Mon Sep 17 00:00:00 2001 From: shining-stars-lk <1031900093@qq.com> Date: Fri, 22 Jul 2022 16:13:12 +0800 Subject: [PATCH] Modifying WebAdapterAutoConfiguration --- .../starter/adapter/web/WebAdapterAutoConfiguration.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/hippo4j-spring-boot/hippo4j-spring-boot-starter-adapter/hippo4j-spring-boot-starter-adapter-web/src/main/java/cn/hippo4j/springboot/starter/adapter/web/WebAdapterAutoConfiguration.java b/hippo4j-spring-boot/hippo4j-spring-boot-starter-adapter/hippo4j-spring-boot-starter-adapter-web/src/main/java/cn/hippo4j/springboot/starter/adapter/web/WebAdapterAutoConfiguration.java index 18a49bea..480bc432 100644 --- a/hippo4j-spring-boot/hippo4j-spring-boot-starter-adapter/hippo4j-spring-boot-starter-adapter-web/src/main/java/cn/hippo4j/springboot/starter/adapter/web/WebAdapterAutoConfiguration.java +++ b/hippo4j-spring-boot/hippo4j-spring-boot-starter-adapter/hippo4j-spring-boot-starter-adapter-web/src/main/java/cn/hippo4j/springboot/starter/adapter/web/WebAdapterAutoConfiguration.java @@ -37,8 +37,6 @@ import org.springframework.core.env.ConfigurableEnvironment; @RequiredArgsConstructor public class WebAdapterAutoConfiguration { - private static final String JETTY_SERVLET_WEB_SERVER_FACTORY = "JettyServletWebServerFactory"; - private static final String UNDERTOW_SERVLET_WEB_SERVER_FACTORY = "undertowServletWebServerFactory"; private final ConfigurableEnvironment environment; @@ -60,11 +58,7 @@ public class WebAdapterAutoConfiguration { return new ThreadPoolRunStateHandler(hippo4JInetUtils, environment); } - @Bean - @ConditionalOnBean(name = JETTY_SERVLET_WEB_SERVER_FACTORY) - public JettyWebThreadPoolHandler jettyWebThreadPoolHandler() { - return new JettyWebThreadPoolHandler(); - } + @Bean @ConditionalOnBean(name = UNDERTOW_SERVLET_WEB_SERVER_FACTORY)