Vishal's Blog
Header
09 - Spring Bean Lifecycle

09 - Spring Bean Lifecycle

30-11-2025|5 min read|929 words|

A complete explanation of the Spring Bean Lifecycle from creation to destruction, including initialization methods, lifecycle callbacks, and how Spring Boot manages bean lifecycles behind the scenes.

10 - Bean Scopes: Singleton, Prototype & Custom Scopes

10 - Bean Scopes: Singleton, Prototype & Custom Scopes

01-12-2025|5 min read|907 words|

A complete guide to bean scopes in Spring, including Singleton, Prototype, Request, Session, Application scopes, and how to create your own custom scope in Spring Boot applications.

11 - Creating Beans: @Component, @Service, @Repository, @Configuration & @Bean

11 - Creating Beans: @Component, @Service, @Repository, @Configuration & @Bean

A detailed guide on how to create beans in Spring using @Component, @Service, @Repository, @Configuration, and @Bean, explaining the differences and best use cases for each annotation.

12 - Understanding @PostConstruct and @PreDestroy

12 - Understanding @PostConstruct and @PreDestroy

A clear and practical explanation of @PostConstruct and @PreDestroy annotations, how Spring uses them in the bean lifecycle, and when developers should apply them in real-world applications.