xiaoQQya
2023-07-09 468e2b2ffbbb4e15dea11d1f9c7451a8097a3ab8
src/main/java/com/genersoft/iot/vmp/utils/SpringBeanFactory.java
@@ -33,11 +33,11 @@
    /**
     * 获取对象 这里重写了bean方法,起主要作用
     */
    public static Object getBean(String beanId) throws BeansException {
    public static  <T> T getBean(String beanId) throws BeansException {
        if (applicationContext == null) {
            return null;
        }
        return applicationContext.getBean(beanId);
        return (T) applicationContext.getBean(beanId);
    }
    /**