mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2026-02-02 00:25:22 +08:00
支持lazy-initialization
This commit is contained in:
@ -8,6 +8,7 @@ import org.jeecg.common.constant.ServiceNameConstants;
|
|||||||
import org.springframework.beans.BeansException;
|
import org.springframework.beans.BeansException;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
||||||
import org.springframework.context.ApplicationContextAware;
|
import org.springframework.context.ApplicationContextAware;
|
||||||
|
import org.springframework.context.annotation.Lazy;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
import org.springframework.web.context.request.RequestContextHolder;
|
import org.springframework.web.context.request.RequestContextHolder;
|
||||||
import org.springframework.web.context.request.ServletRequestAttributes;
|
import org.springframework.web.context.request.ServletRequestAttributes;
|
||||||
@ -16,6 +17,7 @@ import org.springframework.web.context.request.ServletRequestAttributes;
|
|||||||
* @Description: spring上下文工具类
|
* @Description: spring上下文工具类
|
||||||
* @author: jeecg-boot
|
* @author: jeecg-boot
|
||||||
*/
|
*/
|
||||||
|
@Lazy(false)
|
||||||
@Component
|
@Component
|
||||||
public class SpringContextUtils implements ApplicationContextAware {
|
public class SpringContextUtils implements ApplicationContextAware {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user