|
|
|
@ -44,7 +44,6 @@ import reactor.core.publisher.Mono;
|
|
|
|
|
import org.springframework.aot.AotDetector;
|
|
|
|
|
import org.springframework.aot.hint.RuntimeHints;
|
|
|
|
|
import org.springframework.aot.hint.predicate.RuntimeHintsPredicates;
|
|
|
|
|
import org.springframework.beans.CachedIntrospectionResults;
|
|
|
|
|
import org.springframework.beans.factory.BeanCreationException;
|
|
|
|
|
import org.springframework.beans.factory.BeanCurrentlyInCreationException;
|
|
|
|
|
import org.springframework.beans.factory.ObjectProvider;
|
|
|
|
@ -194,7 +193,6 @@ class SpringApplicationTests {
|
|
|
|
|
this.context.close();
|
|
|
|
|
}
|
|
|
|
|
System.clearProperty("spring.main.banner-mode");
|
|
|
|
|
System.clearProperty(CachedIntrospectionResults.IGNORE_BEANINFO_PROPERTY_NAME);
|
|
|
|
|
SpringApplicationShutdownHookInstance.reset();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -280,25 +278,6 @@ class SpringApplicationTests {
|
|
|
|
|
assertThat(output).contains("o.s.b.SpringApplication");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
void setIgnoreBeanInfoPropertyByDefault(CapturedOutput output) {
|
|
|
|
|
SpringApplication application = new SpringApplication(ExampleConfig.class);
|
|
|
|
|
application.setWebApplicationType(WebApplicationType.NONE);
|
|
|
|
|
this.context = application.run();
|
|
|
|
|
String property = System.getProperty(CachedIntrospectionResults.IGNORE_BEANINFO_PROPERTY_NAME);
|
|
|
|
|
assertThat(property).isEqualTo("true");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
void disableIgnoreBeanInfoProperty() {
|
|
|
|
|
System.setProperty(CachedIntrospectionResults.IGNORE_BEANINFO_PROPERTY_NAME, "false");
|
|
|
|
|
SpringApplication application = new SpringApplication(ExampleConfig.class);
|
|
|
|
|
application.setWebApplicationType(WebApplicationType.NONE);
|
|
|
|
|
this.context = application.run();
|
|
|
|
|
String property = System.getProperty(CachedIntrospectionResults.IGNORE_BEANINFO_PROPERTY_NAME);
|
|
|
|
|
assertThat(property).isEqualTo("false");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
void triggersConfigFileApplicationListenerBeforeBinding() {
|
|
|
|
|
SpringApplication application = new SpringApplication(ExampleConfig.class);
|
|
|
|
|