Spring bean reference example
In Spring, beans can “access” to each other by specify the bean references in the same or different bean configuration file. 1. Bean in different XML files If you are referring to a bean in different XML file, you can reference it with a ‘ref‘ tag, ‘bean‘ attribute. <ref bean="someBean"/> In this example, the bean …