苍崖
苍崖
@cdmatta @wilkinsona When relying on developmentOnly'org.springframework.boot:spring-boot-devtools', the SpringBoot project will schedule the org.springframework.boot.devtools.restart.RestartLauncher#run() function in devtools when it starts, and the abnormal status code 0 is returned by the abnormal...
@msmerc @cdmatta You can debug at the following methods.   @wilkinsona I think this situation is not a bug, isn't it ?
@wilkinsona @msmerc For the above problem, I tracked again and got the following results: 1、The first is to set SilentExitExceptionHandler in https://github.com/spring-projects/spring-boot/blob/3478e1912cbd545b83788187bf92a06a7453167f/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/Restarter.java#L139 2、Suspend the main thread at https://github.com/spring-projects/spring-boot/blob/3478e1912cbd545b83788187bf92a06a7453167f/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/Restarter.java#L296, and then...
@wilkinsona If this logic is unreasonable and I want to solve it, please give some guidance.