|
|
|
@ -420,7 +420,9 @@ public class SpringApplication {
|
|
|
|
|
initializers.stream().filter(AotApplicationContextInitializer.class::isInstance).toList());
|
|
|
|
|
if (aotInitializers.isEmpty()) {
|
|
|
|
|
String initializerClassName = this.mainApplicationClass.getName() + "__ApplicationContextInitializer";
|
|
|
|
|
aotInitializers.add(AotApplicationContextInitializer.forInitializerClasses(initializerClassName));
|
|
|
|
|
AotApplicationContextInitializer<ConfigurableApplicationContext> initializer = AotApplicationContextInitializer
|
|
|
|
|
.forInitializerClasses(initializerClassName);
|
|
|
|
|
aotInitializers.add(initializer);
|
|
|
|
|
}
|
|
|
|
|
initializers.removeAll(aotInitializers);
|
|
|
|
|
initializers.addAll(0, aotInitializers);
|
|
|
|
|