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