From f6f60c64b37b991edf4c29c3e0926d310f881c4b Mon Sep 17 00:00:00 2001 From: shining-stars-lk <1031900093@qq.com> Date: Thu, 21 Jul 2022 19:30:08 +0800 Subject: [PATCH] code formatting --- .../starter/adapter/web/WebAdapterAutoConfiguration.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 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 76555d1c..80d1010d 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 @@ -30,7 +30,9 @@ import org.springframework.boot.web.servlet.server.ServletWebServerFactory; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.env.ConfigurableEnvironment; + import javax.servlet.Servlet; + import org.apache.catalina.startup.Tomcat; import org.apache.coyote.UpgradeProtocol; @@ -63,12 +65,12 @@ public class WebAdapterAutoConfiguration { public ThreadPoolRunStateHandler threadPoolRunStateHandler(InetUtils hippo4JInetUtils) { return new ThreadPoolRunStateHandler(hippo4JInetUtils, environment); } + /** * Refer to the Tomcat loading source code . * This load is performed if the {@link Tomcat} class exists and * the Web embedded server loads the {@link ServletWebServerFactory} top-level interface type at the same time - * - * */ + */ @Bean @ConditionalOnClass({Servlet.class, Tomcat.class, UpgradeProtocol.class}) @ConditionalOnBean(value = ServletWebServerFactory.class, search = SearchStrategy.CURRENT)