ApplicationContext体系:

ConfigurableWebApplicationContext是web应用上下文使用的接口,并没有定义太多的操作,主要和Servlet上下文及配置文件等,没有多少接口定义。
public interface ConfigurableWebApplicationContext extends WebApplicationContext, ConfigurableApplicationContext {
String APPLICATION_CONTEXT_ID_PREFIX = WebApplicationContext.class.getName() + ":";
String SERVLET_CONFIG_BEAN_NAME = "servletConfig";
void setServletContext(ServletContext servletContext);
void setServletConfig(ServletConfig servletConfig);
ServletConfig getServletConfig();
void setNamespace(String namespace);
String getNamespace();
void setConfigLocation(String configLocation);
void setConfigLocations(String... configLocations);
String[] getConfigLocations();
}

本文介绍了Spring框架中的ConfigurableWebApplicationContext接口,它是web应用上下文的主要接口之一,详细解释了其核心方法及其作用。
3975

被折叠的 条评论
为什么被折叠?



