commit
e8187f9bb0
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue