Concept Flow - @PostConstruct and @PreDestroy
Bean Created
@PostConstruct Method Called
Bean Ready to Use
Application Context Closing
@PreDestroy Method Called
Bean Destroyed
Shows the lifecycle of a Spring bean: after creation, @PostConstruct runs once before use; before destruction, @PreDestroy runs once.