Class PropertiesMigrationListener
java.lang.Object
org.springframework.boot.context.properties.migrator.PropertiesMigrationListener
- All Implemented Interfaces:
EventListener
,ApplicationListener<SpringApplicationEvent>
public class PropertiesMigrationListener
extends Object
implements ApplicationListener<SpringApplicationEvent>
An
ApplicationListener
that inspects the environment
for configuration keys that need to be migrated. Automatically renames the
keys that have a matching replacement and log a report of what was discovered.- Since:
- 2.0.0
- Author:
- Stephane Nicoll
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
PropertiesMigrationListener
public PropertiesMigrationListener()
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEvent
in interfaceApplicationListener<SpringApplicationEvent>
-