1 Star 1 Fork 156

蓝色调调 / Spring-Analysis

forked from huifer / Code-Analysis 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Spring-ConfigurableEnvironment.md 844 Bytes
一键复制 编辑 原始数据 按行查看 历史
huifer 提交于 2020-12-21 11:02 . feat: namespace 相关分析

Spring ConfigurableEnvironment

  • 类全路径: org.springframework.core.env.ConfigurableEnvironment

  • ConfigurableEnvironment 作为接口在这只对方法作用进行描述

public interface ConfigurableEnvironment extends Environment, ConfigurablePropertyResolver {

	/**
	 * 设置激活的 profile
	 */
	void setActiveProfiles(String... profiles);

	/**
	 * 添加激活的 profile
	 */
	void addActiveProfile(String profile);

	/**
	 * 设置默认的 profile
	 */
	void setDefaultProfiles(String... profiles);

	/**
	 * 获取 属性信息
	 */
	MutablePropertySources getPropertySources();

	/**
	 * 获取系统属性
	 */
	Map<String, Object> getSystemProperties();

	/**
	 * 获取系统环境
	 */
	Map<String, Object> getSystemEnvironment();

	/**
	 * 合并
	 */
	void merge(ConfigurableEnvironment parent);

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

搜索帮助