@Component public class SpringContextUtil extends Object implements org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
SpringContextUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getBean(Class<T> clazz) |
static <T> T |
getBean(String beanName,
Class<T> clazz) |
static String |
getMessage(String key) |
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.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic static <T> T getBean(Class<T> clazz)
Copyright © 2025. All rights reserved.