Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does Spring do if spring.beaninfo.ignore is set to true?

I noticed Spring Boot set spring.beaninfo.ignore as true if it's not set. What does Spring do with respect to this property?

like image 431
Foredoomed Avatar asked Dec 19 '25 04:12

Foredoomed


1 Answers

"spring.beaninfo.ignore", with a value of "true" means skipping the search for BeanInfo classes (typically for scenarios where no such classes are being defined for beans in the application in the first place).

The default is "false", considering all BeanInfo metadata classes, like for standard Introspector.getBeanInfo(Class) calls. Consider switching this flag to "true" if you experience repeated ClassLoader access for non-existing BeanInfo classes, in case such access is expensive on startup or on lazy loading.
like image 147
Yogi Avatar answered Dec 21 '25 16:12

Yogi