类 SpringProfileDocumentMatcher
- java.lang.Object
- org.springframework.boot.yaml.SpringProfileDocumentMatcher
- 所有已实现的接口:
org.springframework.beans.factory.config.YamlProcessor.DocumentMatcher
public class SpringProfileDocumentMatcher extends Object implements org.springframework.beans.factory.config.YamlProcessor.DocumentMatcher
YamlProcessor.DocumentMatcher
backed byEnvironment.getActiveProfiles()
. A YAML document may define a "spring.profiles" element as a comma-separated list of Spring profile names, optionally negated using the!
character. If both negated and non-negated profiles are specified for a single document, at least one non-negated profile must match and no negated profiles may match.
构造器概要
构造器 构造器 说明 SpringProfileDocumentMatcher()
SpringProfileDocumentMatcher(String... profiles)
构造器详细资料
SpringProfileDocumentMatcher
public SpringProfileDocumentMatcher()
SpringProfileDocumentMatcher
public SpringProfileDocumentMatcher(String... profiles)
方法详细资料
addActiveProfiles
public void addActiveProfiles(String... profiles)
matches
public org.springframework.beans.factory.config.YamlProcessor.MatchStatus matches(Properties properties)
- 指定者:
matches
在接口中org.springframework.beans.factory.config.YamlProcessor.DocumentMatcher