I have a Spring bean defined in an xml file. I want to reference it from another xml file. How can I go about it?
Answer provided by tolitius is very detailed. Just for the problem mentioned by Peter Butkovic
for me web.xml chunk throws error. One param-value seems to be allowed only in place. – Peter Butkovic
I met the same problem and solved by spliting two paths with "," in the same tag.
It will look like this
contextConfigLocation
/WEB-INF/applicationContext.xml,
/WEB-INF/daoContext.xml