spring-boot/spring-boot-project
Andy Wilkinson a95a7e3d40 Allow restart to be enabled when CL not named AppClassLoader
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
2021-01-13 10:12:12 +00:00
..
spring-boot Merge branch '2.3.x' into 2.4.x 2021-01-12 12:04:11 -08:00
spring-boot-actuator Support @Name annotation on /actuator/configprops 2021-01-12 17:38:17 -08:00
spring-boot-actuator-autoconfigure Merge branch '2.3.x' into 2.4.x 2021-01-12 12:04:11 -08:00
spring-boot-autoconfigure Merge branch '2.3.x' into 2.4.x 2021-01-12 16:03:48 +00:00
spring-boot-cli Merge branch '2.3.x' into 2.4.x 2021-01-06 17:01:53 -08:00
spring-boot-dependencies Upgrade to Reactor Dysprosium-SR16 2021-01-12 15:00:11 +01:00
spring-boot-devtools Allow restart to be enabled when CL not named AppClassLoader 2021-01-13 10:12:12 +00:00
spring-boot-docs Merge branch '2.3.x' into 2.4.x 2021-01-08 15:53:53 +01:00
spring-boot-parent Merge branch '2.3.x' 2020-11-10 17:44:05 +01:00
spring-boot-properties-migrator Update copyright year of changed files 2020-09-17 00:31:01 -07:00
spring-boot-starters Configure resources filtering encoding 2020-12-23 10:44:06 +01:00
spring-boot-test Merge branch '2.3.x' into 2.4.x 2021-01-06 16:44:32 -08:00
spring-boot-test-autoconfigure Merge branch '2.3.x' into 2.4.x 2020-12-15 17:21:39 +00:00
spring-boot-tools Fix tests to also work in IDE 2021-01-12 17:31:53 -08:00