类 SpringContextUtil
- java.lang.Object
-
- cn.bbwres.biscuit.utils.SpringContextUtil
-
- 所有已实现的接口:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class SpringContextUtil extends Object implements org.springframework.context.ApplicationContextAware
Spring上下文工具类- 作者:
- zhanglinfeng
-
-
构造器概要
构造器 构造器 说明 SpringContextUtil()
-
-
-
方法详细资料
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext context)
- 指定者:
setApplicationContext在接口中org.springframework.context.ApplicationContextAware
-
getBean
public static <T> T getBean(Class<T> beanClass)
静态方法:获取Spring管理的Bean- 类型参数:
T-- 参数:
beanClass-- 返回:
-
-