From 67e2b6c39636ad3812cc342251e85f9569258671 Mon Sep 17 00:00:00 2001 From: bf109f <18796261167@163.com> Date: Sun, 31 Aug 2025 18:09:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81springboot3=20jdk17?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../starter/event/ApplicationContentPostProcessor.java | 6 +++--- ...ngframework.boot.autoconfigure.AutoConfiguration.imports | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 hippo4j-spring-boot/hippo4j-spring-boot-starter/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports 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