lawrencehj
2021-03-15 fa98c6b8c27e31433e24a4ab6291579d562e2f13
src/main/java/com/genersoft/iot/vmp/utils/SpringBeanFactory.java
@@ -7,7 +7,7 @@
/**    
 * @Description:spring bean获取工厂,获取spring中的已初始化的bean
 * @author: songww
 * @author: swwheihei
 * @date:   2019年6月25日 下午4:51:52   
 * 
 */
@@ -34,6 +34,7 @@
     * 获取对象 这里重写了bean方法,起主要作用
     */
    public static Object getBean(String beanId) throws BeansException {
        if (applicationContext == null) return null;
        return applicationContext.getBean(beanId);
    }