Spring provides us with beans after instantiating and configuring them. Spring Container manages objects. This means that any object can refer to any other object from Spring Container using the bean's ID, and Spring Container provides an instance of the requesting object.
When we start Spring Container,
ApplicationContext reads the Spring configuration, file looks for all bean definitions available there, and then initializes beans before any call to the
ApplicationContext itself has initialized all the Spring beans configured in Spring XML. When another object makes a call to the
ApplicationContext returns the same reference of bean that has already been initialized. This ...