Fix the Web adaptation configuration

pull/353/head
shining-stars-lk 3 years ago
parent 6c19ea8596
commit 31c8b14c25

@ -38,8 +38,6 @@ import org.springframework.core.env.ConfigurableEnvironment;
@RequiredArgsConstructor @RequiredArgsConstructor
public class WebAdapterAutoConfiguration { public class WebAdapterAutoConfiguration {
private static final String UNDERTOW_SERVLET_WEB_SERVER_FACTORY = "undertowServletWebServerFactory";
private final ConfigurableEnvironment environment; private final ConfigurableEnvironment environment;
@Bean @Bean
@ -59,14 +57,6 @@ public class WebAdapterAutoConfiguration {
return new ThreadPoolRunStateHandler(hippo4JInetUtils, environment); return new ThreadPoolRunStateHandler(hippo4JInetUtils, environment);
} }
@Bean
@ConditionalOnBean(name = UNDERTOW_SERVLET_WEB_SERVER_FACTORY)
public UndertowWebThreadPoolHandler undertowWebThreadPoolHandler() {
return new UndertowWebThreadPoolHandler();
}
@Bean @Bean
public WebThreadPoolHandlerChoose webThreadPoolServiceChoose() { public WebThreadPoolHandlerChoose webThreadPoolServiceChoose() {
return new WebThreadPoolHandlerChoose(); return new WebThreadPoolHandlerChoose();

Loading…
Cancel
Save