public final class SpringBeanUtils extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
getBean(Class<T> type)
acquire spring bean.
|
static SpringBeanUtils |
getInstance()
get SpringBeanUtils.
|
void |
setCfgContext(org.springframework.context.ConfigurableApplicationContext cfgContext)
set application context.
|
public static SpringBeanUtils getInstance()
public <T> T getBean(Class<T> type)
T - classtype - typepublic void setCfgContext(org.springframework.context.ConfigurableApplicationContext cfgContext)
cfgContext - application contextCopyright © 2019 dromara. All rights reserved.