Skip to content

Commit d01c1d7

Browse files
committed
支持lazy-initialization
1 parent 3576b54 commit d01c1d7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/SpringContextUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import org.springframework.beans.BeansException;
99
import org.springframework.context.ApplicationContext;
1010
import org.springframework.context.ApplicationContextAware;
11+
import org.springframework.context.annotation.Lazy;
1112
import org.springframework.stereotype.Component;
1213
import org.springframework.web.context.request.RequestContextHolder;
1314
import org.springframework.web.context.request.ServletRequestAttributes;
@@ -16,6 +17,7 @@
1617
* @Description: spring上下文工具类
1718
* @author: jeecg-boot
1819
*/
20+
@Lazy(false)
1921
@Component
2022
public class SpringContextUtils implements ApplicationContextAware {
2123

0 commit comments

Comments
 (0)