Is there a way I can preload all beans from the XML file at once and then loop through them without knowing their bean names? I’ve seen that it is obviously possible to do the preloading but I haven’t seen a way to access them without knowing their specific bean names. Thanks!
Share
You can use getBeanDefinitionNames() from the XmlBeanFactory class. From Java Docs:-
Example:
Hope this helps!