Spring Bean reference Example

In Spring, we can access beans i.e reference from the same or different bean configuration file, just have a look in to below scenarios. scenario 1: if the Bean is in different XML file If you are trying to access bean from different XML file, then we need to use ‘ref‘ tag with ‘bean‘ attribute. […]