#What is the meaning of lazy-initialization in Spring Boot properties file ?
15 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @onyx condor! Please use
/closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
IIRC that should be about bean initialization
so if you have
@Component
public class SomeComponent {
@Autowired
private OtherComponent other;
}
then lazy initialization allows Spring to create and register SomeComponent before the OtherComponent bean is fully initialized
nvm not that
it means that if you declare a bean, it will only be created when it's actually needed
so that property makes all beans in the app lazy ?
yes
