Spring's core functions revolve around ApplicationContext , which is the "Central Interface for Application Configuration." the interface is implemented using ClassPathXmlApplicationContext , which helps you determine contextual definitions from your class path. If you specify the class path *.
As @skaffman explains, your application loads from context definitions in the above files. that is, all Spring beans are initialized, and dependency injection is performed as needed.
If you are working with web applications, Spring has the corresponding web application context loaded by XmlWebApplicationContext
source share