Example usage for org.springframework.boot.ansi AnsiPropertySource AnsiPropertySource

List of usage examples for org.springframework.boot.ansi AnsiPropertySource AnsiPropertySource

Introduction

In this page you can find the example usage for org.springframework.boot.ansi AnsiPropertySource AnsiPropertySource.

Prototype

public AnsiPropertySource(String name, boolean encode) 

Source Link

Document

Create a new AnsiPropertySource instance.

Usage

From source file:org.springframework.boot.ResourceBanner.java

private PropertyResolver getAnsiResolver() {
    MutablePropertySources sources = new MutablePropertySources();
    sources.addFirst(new AnsiPropertySource("ansi", true));
    return new PropertySourcesPropertyResolver(sources);
}