Spring - Initializing a Spring Bean
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh13w8HAihAnAQpDttNdBt41zZJCZhM45NPW7Izd8uNutnGJt_2uL6E2dWMVU4DVL76ibrewhwJFgFc8q5jbIjS3goz9K5Nd4wrgMFzmbDX7p3ghXQF-l17FIUwo2G1D9vrBBrhsXDkLXs/s1600/springlogo.png)
It is often required to run some custom code on initialization of a Spring bean. e.g. to check for mandatory properties or establish initial connections. Spring provides a few constructs to initialize the beans after they are injected with the properties.