@Component public class ApplicationContextRegister extends Object implements org.springframework.context.ApplicationContextAware
| 构造器和说明 |
|---|
ApplicationContextRegister() |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.springframework.context.ApplicationContext |
getApplicationContext() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
设置spring上下文 * * @param applicationContext spring上下文 * @throws BeansException
|
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext 在接口中 org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic static org.springframework.context.ApplicationContext getApplicationContext()
Copyright © 2023. All rights reserved.