diff --git a/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/LocalDevToolsAutoConfiguration.java b/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/LocalDevToolsAutoConfiguration.java index 47ca0cbca44c..04c4de477fba 100644 --- a/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/LocalDevToolsAutoConfiguration.java +++ b/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/LocalDevToolsAutoConfiguration.java @@ -100,7 +100,7 @@ static class RestartConfiguration { } @Bean - public ApplicationListener restartingClassPathChangedEventListener( + public ClassPathChangedEventListener restartingClassPathChangedEventListener( FileSystemWatcherFactory fileSystemWatcherFactory) { return (event) -> { if (event.isRestartRequired()) { @@ -153,6 +153,10 @@ private FileSystemWatcher newFileSystemWatcher() { return watcher; } + interface ClassPathChangedEventListener extends ApplicationListener { + + } + } static class LiveReloadServerEventListener implements GenericApplicationListener {