|
@@ -17,6 +17,9 @@ public class SpringUtils implements ApplicationContextAware {
|
|
|
// applicationId = ctx.getId();
|
|
|
// environment = ctx.getEnvironment();
|
|
|
}
|
|
|
+ public static ApplicationContext getApplicationContext() {
|
|
|
+ return applicationContext;
|
|
|
+ }
|
|
|
|
|
|
public static Object getBean(String name){
|
|
|
return applicationContext.getBean(name);
|