Search in sources :

Example 1 with AnsiPropertySource

use of org.springframework.boot.ansi.AnsiPropertySource in project spring-boot by spring-projects.

the class ResourceBanner method getAnsiResolver.

private PropertyResolver getAnsiResolver() {
    MutablePropertySources sources = new MutablePropertySources();
    sources.addFirst(new AnsiPropertySource("ansi", true));
    return new PropertySourcesPropertyResolver(sources);
}
Also used : PropertySourcesPropertyResolver(org.springframework.core.env.PropertySourcesPropertyResolver) MutablePropertySources(org.springframework.core.env.MutablePropertySources) AnsiPropertySource(org.springframework.boot.ansi.AnsiPropertySource)

Aggregations

AnsiPropertySource (org.springframework.boot.ansi.AnsiPropertySource)1 MutablePropertySources (org.springframework.core.env.MutablePropertySources)1 PropertySourcesPropertyResolver (org.springframework.core.env.PropertySourcesPropertyResolver)1