实现自己的SpringContext工具类 记录一下自己封装的SpringContextUtil工具类 package com.xiaoju.automarket.fate.data.engine.core.service.impl.utils; import org.springframework.beans.BeansException; import org.springframework.beans.factory.NoSuchBeanDefinitionException; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; import org.springframework.stereotype.Component; import java.util.Map; /** * @author huki * date 2020-06-15 */ @Component public class SpringContextUtil implements ApplicationContextAware { private<