Java 类org.springframework.boot.yaml.SpringProfileDocumentMatcher 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:YamlPropertySourceLoader.java   
Processor(Resource resource, String profile) {
    if (profile == null) {
        setMatchDefault(true);
        setDocumentMatchers(new SpringProfileDocumentMatcher());
    }
    else {
        setMatchDefault(false);
        setDocumentMatchers(new SpringProfileDocumentMatcher(profile));
    }
    setResources(new Resource[] { resource });
}
项目:spring-boot-concourse    文件:YamlPropertySourceLoader.java   
Processor(Resource resource, String profile) {
    if (profile == null) {
        setMatchDefault(true);
        setDocumentMatchers(new SpringProfileDocumentMatcher());
    }
    else {
        setMatchDefault(false);
        setDocumentMatchers(new SpringProfileDocumentMatcher(profile));
    }
    setResources(new Resource[] { resource });
}
项目:contestparser    文件:YamlPropertySourceLoader.java   
Processor(Resource resource, String profile) {
    if (profile == null) {
        setMatchDefault(true);
        setDocumentMatchers(new SpringProfileDocumentMatcher());
    }
    else {
        setMatchDefault(false);
        setDocumentMatchers(new SpringProfileDocumentMatcher(profile));
    }
    setResources(new Resource[] { resource });
}