Closes gh-14172
This commit is contained in:
Johnny Lim
2018-08-23 02:09:49 +09:00
committed by Stephane Nicoll
parent 1b7f713487
commit 9602a32a8d
16 changed files with 22 additions and 34 deletions

View File

@@ -191,14 +191,11 @@ public class LocalDevToolsAutoConfiguration {
@Override
public void onApplicationEvent(ApplicationEvent event) {
if (event instanceof ContextRefreshedEvent) {
if (event instanceof ContextRefreshedEvent
|| (event instanceof ClassPathChangedEvent
&& !((ClassPathChangedEvent) event).isRestartRequired())) {
this.liveReloadServer.triggerReload();
}
if (event instanceof ClassPathChangedEvent) {
if (!((ClassPathChangedEvent) event).isRestartRequired()) {
this.liveReloadServer.triggerReload();
}
}
}
@Override