1 Star 0 Fork 156

whl595145999 / Spring-Analysis

forked from huifer / Code-Analysis 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Spring-ConfigurableWebApplicationContext.md 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
huifer 提交于 2020-12-24 14:00 . feat: v0.0.18

Spring ConfigurableWebApplicationContext

  • 类全路径: org.springframework.web.context.ConfigurableWebApplicationContext
  • 类作用: 设置 web 应用上下文属性
public interface ConfigurableWebApplicationContext extends WebApplicationContext, ConfigurableApplicationContext {

	/**
	 * 应用上下文 id 前缀
	 */
	String APPLICATION_CONTEXT_ID_PREFIX = WebApplicationContext.class.getName() + ":";

	/**
	 * servlet 配置名称(bean name)
	 */
	String SERVLET_CONFIG_BEAN_NAME = "servletConfig";


	/**
	 * 设置 servlet 上下文
	 */
	void setServletContext(@Nullable ServletContext servletContext);

	/**
	 * 设置 servlet config
	 */
	void setServletConfig(@Nullable ServletConfig servletConfig);

	/**
	 * 获取 servlet config
	 */
	@Nullable
	ServletConfig getServletConfig();

	/**
	 * 设置命名空间
	 */
	void setNamespace(@Nullable String namespace);

	/**
	 * 获取命名空间
	 */
	@Nullable
	String getNamespace();

	/**
	 * 设置配置文件地址
	 */
	void setConfigLocation(String configLocation);

	/**
	 * 设置配置文件地址
	 */
	void setConfigLocations(String... configLocations);

	/**
	 * 获取配置文件地址
	 */
	@Nullable
	String[] getConfigLocations();

}
Java
1
https://gitee.com/595145999/spring-analysis.git
git@gitee.com:595145999/spring-analysis.git
595145999
spring-analysis
Spring-Analysis
master

搜索帮助