Example usage for org.springframework.boot.context.properties.migrator PropertiesMigrationReporter getReport

List of usage examples for org.springframework.boot.context.properties.migrator PropertiesMigrationReporter getReport

Introduction

In this page you can find the example usage for org.springframework.boot.context.properties.migrator PropertiesMigrationReporter getReport.

Prototype

PropertiesMigrationReport getReport() 

Source Link

Document

Analyse the ConfigurableEnvironment environment and attempt to rename legacy properties if a replacement exists.

Usage

From source file:org.springframework.boot.context.properties.migrator.PropertiesMigrationListener.java

private void onApplicationPreparedEvent(ApplicationPreparedEvent event) {
    ConfigurationMetadataRepository repository = loadRepository();
    PropertiesMigrationReporter reporter = new PropertiesMigrationReporter(repository,
            event.getApplicationContext().getEnvironment());
    this.report = reporter.getReport();
}