diff --git a/hippo4j-spring-boot/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/springboot/starter/event/ApplicationContentPostProcessor.java b/hippo4j-spring-boot/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/springboot/starter/event/ApplicationContentPostProcessor.java index 3dd1adf2..5201d3e1 100644 --- a/hippo4j-spring-boot/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/springboot/starter/event/ApplicationContentPostProcessor.java +++ b/hippo4j-spring-boot/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/springboot/starter/event/ApplicationContentPostProcessor.java @@ -18,11 +18,11 @@ package cn.hippo4j.springboot.starter.event; import cn.hippo4j.springboot.starter.core.ClientWorker; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationListener; import org.springframework.context.event.ContextRefreshedEvent; -import javax.annotation.Resource; import java.util.concurrent.atomic.AtomicBoolean; /** @@ -30,10 +30,10 @@ import java.util.concurrent.atomic.AtomicBoolean; */ public class ApplicationContentPostProcessor implements ApplicationListener { - @Resource + @Autowired private ApplicationContext applicationContext; - @Resource + @Autowired private ClientWorker clientWorker; private final AtomicBoolean executeOnlyOnce = new AtomicBoolean(false); diff --git a/hippo4j-spring-boot/hippo4j-spring-boot-starter/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/hippo4j-spring-boot/hippo4j-spring-boot-starter/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports new file mode 100644 index 00000000..09b50ce0 --- /dev/null +++ b/hippo4j-spring-boot/hippo4j-spring-boot-starter/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports @@ -0,0 +1,2 @@ +cn.hippo4j.springboot.starter.config.DynamicThreadPoolAutoConfiguration +cn.hippo4j.springboot.starter.core.ConfigEmptyAnalyzer