What is the Spring bean lifecycle
?
1. IoC Container is created
2. Container creates beans
3. Dependencies are injected into beans
4. Custom `init()` function is run; denoted by using @PostConstrct or init() method
5. Bean is ready to be used
6. Bean is used
7. Custom `destroy()` function is run when Container is destroyed: `@PreDestroy` annotation or custom destroy() method
<!--SR:!2025-11-19,1,190-->