public class ApplicationContextUtil extends Object implements org.springframework.context.ApplicationContextAware
| 构造器和说明 |
|---|
ApplicationContextUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.springframework.context.ApplicationContext |
getContext()
获取上下文
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
设置上下文
|
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext 在接口中 org.springframework.context.ApplicationContextAwareapplicationContext - 上下文实例org.springframework.beans.BeansExceptionpublic static org.springframework.context.ApplicationContext getContext()
Copyright © 2022. All rights reserved.