From d01c1d7d477473b2250d0b4d3a2d35b939b9e210 Mon Sep 17 00:00:00 2001 From: JEECG <445654970@qq.com> Date: Thu, 7 Aug 2025 15:41:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81lazy-initialization?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/jeecg/common/util/SpringContextUtils.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/SpringContextUtils.java b/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/SpringContextUtils.java index bd46b7d82..cc7cccb30 100644 --- a/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/SpringContextUtils.java +++ b/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/SpringContextUtils.java @@ -8,6 +8,7 @@ import org.jeecg.common.constant.ServiceNameConstants; import org.springframework.beans.BeansException; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Component; import org.springframework.web.context.request.RequestContextHolder; import org.springframework.web.context.request.ServletRequestAttributes; @@ -16,6 +17,7 @@ import org.springframework.web.context.request.ServletRequestAttributes; * @Description: spring上下文工具类 * @author: jeecg-boot */ +@Lazy(false) @Component public class SpringContextUtils implements ApplicationContextAware {