add:增加出入库分配规则调用
This commit is contained in:
@@ -22,6 +22,7 @@ import org.springframework.context.ApplicationContextAware;
|
||||
import org.springframework.core.env.Environment;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author Jie
|
||||
@@ -154,4 +155,9 @@ public class SpringContextHolder implements ApplicationContextAware, DisposableB
|
||||
}
|
||||
SpringContextHolder.addCallback = false;
|
||||
}
|
||||
|
||||
public static <T> Map<String,T> getBeansOfType(Class<T> requiredType) {
|
||||
assertContextInjected();
|
||||
return applicationContext.getBeansOfType(requiredType);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user