63 Star 427 Fork 156

huifer/Code-Analysis

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Spring-Environment.md 1.20 KB
一键复制 编辑 原始数据 按行查看 历史
huifer 提交于 5年前 . 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);

}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/pychfarm_admin/code-analysis.git
git@gitee.com:pychfarm_admin/code-analysis.git
pychfarm_admin
code-analysis
Code-Analysis
v0.0.15

搜索帮助