What happens when we have 2 or more beans defined in beans.xml with same id?

What happens when we have 2 or more beans defined in beans.xml with same id?

What happens when we have 2 or more beans defined in beans.xml with same id? Exception in thread “main” org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 11 in XML document from file [C:\figworkspace\SpringLearning\src\conf\ch4\beans.xml] is invalid; nested exception is org.xml.sax.SAXParseException: Attribute…

Basic Spring Interview Questions and Answers

Spring Interview Questions and Answers Let’s see frequently asked questions on Spring framework on Java interviews : 1) What is spring framework? Why Java programmer should use Spring framework This is a Very common Spring interview question,…