mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Previously, the restart initializer that enables restart when -Dspring.devtools.restart.enabled=true is set had no effect when the ClassLoader's name did not contain AppClassLoader. This commit updates RestartApplicationListener to use the correct RestartInitializer when the system property has forcibly enabled restart. When restart is enabled a SilentExitException is thrown and it should be caught and handled by the SilentExitExceptionHandler. When the application is invoked via one of the loader's LauncherClasses reflection is used and this exception becomes wrapped in an InvocationTargetEception. Previously, this wrapping prevented SilentExitExceptionHandler from handling the exception. This commit updates the handler to look for an InvocationTargetException with a SilentExitException target in addition to continuing to look for a SilentExitException directly. Fixes gh-24797 |
||
---|---|---|
.. | ||
spring-boot | ||
spring-boot-actuator | ||
spring-boot-actuator-autoconfigure | ||
spring-boot-autoconfigure | ||
spring-boot-cli | ||
spring-boot-dependencies | ||
spring-boot-devtools | ||
spring-boot-docs | ||
spring-boot-parent | ||
spring-boot-properties-migrator | ||
spring-boot-starters | ||
spring-boot-test | ||
spring-boot-test-autoconfigure | ||
spring-boot-tools |