Spring / Spring interview questions
Spring: What are Lazily-instantiated beans?
Spring instantiate all the beans at startup by default. But sometimes, some beans are not required to be initialized during startup, rather we want them to be initialized in later stages of the application on demand. For such beans, we include lazy-init="true" while configuring beans.
<bean lazy-init="true"> <!-- this bean will be lazily-instantiated... --> </bean>
More Related questions...