|
|
|
@ -39,7 +39,6 @@ import org.springframework.aot.AotDetector; |
|
|
|
import org.springframework.aot.hint.RuntimeHints; |
|
|
|
import org.springframework.aot.hint.RuntimeHints; |
|
|
|
import org.springframework.aot.hint.RuntimeHintsRegistrar; |
|
|
|
import org.springframework.aot.hint.RuntimeHintsRegistrar; |
|
|
|
import org.springframework.beans.BeansException; |
|
|
|
import org.springframework.beans.BeansException; |
|
|
|
import org.springframework.beans.CachedIntrospectionResults; |
|
|
|
|
|
|
|
import org.springframework.beans.factory.config.BeanDefinition; |
|
|
|
import org.springframework.beans.factory.config.BeanDefinition; |
|
|
|
import org.springframework.beans.factory.config.BeanFactoryPostProcessor; |
|
|
|
import org.springframework.beans.factory.config.BeanFactoryPostProcessor; |
|
|
|
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; |
|
|
|
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; |
|
|
|
@ -305,7 +304,6 @@ public class SpringApplication { |
|
|
|
try { |
|
|
|
try { |
|
|
|
ApplicationArguments applicationArguments = new DefaultApplicationArguments(args); |
|
|
|
ApplicationArguments applicationArguments = new DefaultApplicationArguments(args); |
|
|
|
ConfigurableEnvironment environment = prepareEnvironment(listeners, bootstrapContext, applicationArguments); |
|
|
|
ConfigurableEnvironment environment = prepareEnvironment(listeners, bootstrapContext, applicationArguments); |
|
|
|
configureIgnoreBeanInfo(environment); |
|
|
|
|
|
|
|
Banner printedBanner = printBanner(environment); |
|
|
|
Banner printedBanner = printBanner(environment); |
|
|
|
context = createApplicationContext(); |
|
|
|
context = createApplicationContext(); |
|
|
|
context.setApplicationStartup(this.applicationStartup); |
|
|
|
context.setApplicationStartup(this.applicationStartup); |
|
|
|
@ -532,14 +530,6 @@ public class SpringApplication { |
|
|
|
protected void configureProfiles(ConfigurableEnvironment environment, String[] args) { |
|
|
|
protected void configureProfiles(ConfigurableEnvironment environment, String[] args) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void configureIgnoreBeanInfo(ConfigurableEnvironment environment) { |
|
|
|
|
|
|
|
if (System.getProperty(CachedIntrospectionResults.IGNORE_BEANINFO_PROPERTY_NAME) == null) { |
|
|
|
|
|
|
|
Boolean ignore = environment.getProperty(CachedIntrospectionResults.IGNORE_BEANINFO_PROPERTY_NAME, |
|
|
|
|
|
|
|
Boolean.class, Boolean.TRUE); |
|
|
|
|
|
|
|
System.setProperty(CachedIntrospectionResults.IGNORE_BEANINFO_PROPERTY_NAME, ignore.toString()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Bind the environment to the {@link SpringApplication}. |
|
|
|
* Bind the environment to the {@link SpringApplication}. |
|
|
|
* @param environment the environment to bind |
|
|
|
* @param environment the environment to bind |
|
|
|
|