https://github.com/eugenp/tutorials/blob/9f4b9f8e7743fc7fef1d12408ece00ca81e295ca/spring-boot-modules/spring-boot-runtime-2/src/main/java/com/baeldung/restart/Application.java#L18 When devtools are used at the same time, the restart does work only once