·
life cycle includes init() and destroy() mechanism
·
Life cycles performed in ConfigarableApplicationContext in IoC.so we have
use this for loading xml from in our main class
·
we have 3 approaches to do this in Spring
1. Programmatic Approach
2. XML approach
3. @Annotations approach