@Component public class ApplicationContextUtil extends Object implements org.springframework.context.ApplicationContextAware
| 限定符和类型 | 字段和说明 |
|---|---|
private static org.springframework.context.ApplicationContext |
context |
| 构造器和说明 |
|---|
ApplicationContextUtil() |
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext 在接口中 org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic static <T> T getBean(Class<T> clazz)
Copyright © 2021. All rights reserved.