@Component(value="springUtils") @Lazy(value=false) public final class SpringUtils extends Object implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.DisposableBean
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy() |
static org.springframework.context.ApplicationContext |
getApplicationContext()
获取applicationContext
|
static Object |
getBean(String name)
获取实例
|
static <T> T |
getBean(String name,
Class<T> type)
获取实例
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext 在接口中 org.springframework.context.ApplicationContextAwarepublic void destroy()
throws Exception
destroy 在接口中 org.springframework.beans.factory.DisposableBeanExceptionpublic static org.springframework.context.ApplicationContext getApplicationContext()
Copyright © 2020. All rights reserved.