public class ApplicationContextUtil extends Object implements org.springframework.context.ApplicationContextAware
Constructor and Description |
---|
ApplicationContextUtil() |
Modifier and Type | Method and Description |
---|---|
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
in interface org.springframework.context.ApplicationContextAware
applicationContext
- 上下文实例org.springframework.beans.BeansException
public static org.springframework.context.ApplicationContext getContext()
Copyright © 2019. All rights reserved.