In our enterprise framework, we have a list of Spring beans(@Bean
) defined in a config(@Configuration
) class. For some reason, we want to lazy load all the Spring beans defined in that config class but we don't have access to enterprise framework source code to add @Lazy
to the config class.
Can someone please tell, how we can lazy load the beans defined in the framework in our application code?