1 Star 0 Fork 156

chenym / Spring-Analysis

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

Spring Environment

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

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

public interface Environment extends PropertyResolver {

	/**
	 * 获取已经激活的文件列表
	 */
	String[] getActiveProfiles();

	/**
	 * 获取默认的文件列表
	 */
	String[] getDefaultProfiles();

	/**
	 * profiles 是否在 激活的 profile 中.
	 */
	@Deprecated
	boolean acceptsProfiles(String... profiles);

	/**
	 * profiles 是否激活
	 */
	boolean acceptsProfiles(Profiles profiles);

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

搜索帮助

53164aa7 5694891 3bd8fe86 5694891