- All Implemented Interfaces:
- org.springframework.beans.factory.config.YamlProcessor.DocumentMatcher
public class SpringProfileDocumentMatcher
extends Object
implements org.springframework.beans.factory.config.YamlProcessor.DocumentMatcher
YamlProcessor.DocumentMatcher
backed by Environment.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.
- Author:
- Dave Syer, Matt Benson, Phillip Webb, Andy Wilkinson