public class SpringContextUtil
extends java.lang.Object
构造器和说明 |
---|
SpringContextUtil() |
限定符和类型 | 方法和说明 |
---|---|
static org.springframework.context.ApplicationContext |
getSpringApplicationContext()
获取spring上下文
|
static org.springframework.context.ApplicationContext |
getSpringMvcApplicationMvcContext()
获取springMVC上下文
|
static void |
setSpringMvcApplicationContext(org.springframework.context.ApplicationContext cxt)
设置 spring MVC的 ApplicationContext
|
public static org.springframework.context.ApplicationContext getSpringApplicationContext()
public static org.springframework.context.ApplicationContext getSpringMvcApplicationMvcContext()
public static void setSpringMvcApplicationContext(org.springframework.context.ApplicationContext cxt)
cxt
- springmvc的上下文