Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring framework default-lazy-init all beans

Is there a spring property to lazy-init all beans that spring framework loads ?

I know about these properties

 - lazy-init="true"
 - default-lazy-init="true"

however there are multiple spring config xml files and some are packaged within jar so dont have liberty to change neither <bean> nor <beans> tag.

Any other way to tackle this via configuration ? or programatically ?

like image 597
Prashant Bhate Avatar asked Oct 11 '22 22:10

Prashant Bhate


1 Answers

Short of extending the Spring bean loader, none that I know of.

like image 184
Andrew White Avatar answered Jan 01 '23 11:01

Andrew White