Use existing constant rather than "spring.beaninfo.ignore"

See gh-29592
This commit is contained in:
minkyu-jo 2022-01-29 16:08:35 +09:00 committed by Stephane Nicoll
parent a94b176c39
commit 1a558292a8
1 changed files with 1 additions and 1 deletions

View File

@ -519,7 +519,7 @@ public class SpringApplication {
private void configureIgnoreBeanInfo(ConfigurableEnvironment environment) { private void configureIgnoreBeanInfo(ConfigurableEnvironment environment) {
if (System.getProperty(CachedIntrospectionResults.IGNORE_BEANINFO_PROPERTY_NAME) == null) { if (System.getProperty(CachedIntrospectionResults.IGNORE_BEANINFO_PROPERTY_NAME) == null) {
Boolean ignore = environment.getProperty("spring.beaninfo.ignore", Boolean.class, Boolean.TRUE); Boolean ignore = environment.getProperty(CachedIntrospectionResults.IGNORE_BEANINFO_PROPERTY_NAME, Boolean.class, Boolean.TRUE);
System.setProperty(CachedIntrospectionResults.IGNORE_BEANINFO_PROPERTY_NAME, ignore.toString()); System.setProperty(CachedIntrospectionResults.IGNORE_BEANINFO_PROPERTY_NAME, ignore.toString());
} }
} }