Commit e8187f9b authored by Andy Wilkinson's avatar Andy Wilkinson

Merge branch '2.2.x' into 2.3.x

Closes gh-23743
parents 11b5e86f 2a40bd78
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment