Q uestion about SpringBeans.xml :- Is this file the file that configure my Bean Factory ? I think that, as well as I pass a text value as the value of a variable I could also inject a bean as a dependency of another bean. Is it right? In this example, can I don't use the Spring Beans.xml file and using in place of the annotation system? Answer :- 1) This Beans.xml (actually you can name it whatever you want) is a Spring configuration file . It holds a Configuration Metadata . 5.2.1 Configuration metadata As the preceding diagram shows, the Spring Ioc container consumes a form of configuration metadata; this configuration metadata represents how you as an application developer tell the Spring container to instantiate, configure, and assemble the objects in your application........ Read All the information about Configuration Metadata on official site. Configuration metadata is traditionally supplied in a simp...