Merge branch '2.2.x' into 2.3.x

Closes gh-23743
This commit is contained in:
Andy Wilkinson 2020-10-19 10:25:24 +01:00
commit e8187f9bb0
1 changed files with 1 additions and 1 deletions

View File

@ -394,7 +394,6 @@ public class SpringApplication {
}
private void refreshContext(ConfigurableApplicationContext context) {
refresh((ApplicationContext) context);
if (this.registerShutdownHook) {
try {
context.registerShutdownHook();
@ -403,6 +402,7 @@ public class SpringApplication {
// Not allowed in some environments.
}
}
refresh((ApplicationContext) context);
}
private void configureHeadlessProperty() {