The initialization phase

In this phase, first of all Spring loads all the configuration files of any style-XML, Annotations, and Java configuration. This phase prepares the beans for use. The application is not usable until this phase is complete. This phase, actually, creates the application services for use, and it allocates the system resources to the bean. Spring provides ApplicationContext to load the bean configurations; once the application context is created, the initialization phase completes. Let's see how Spring loads the configuration files in Java or XML.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset