@PostConstruct, @PreDestroy & Bean Lifecycle Built-in interfaces | Spring Tutorial |Ch1|E17|

Опубликовано: 05 Октябрь 2024
на канале: STUDevLantern
484
16

in this session we talk about the lifecycle of bean in spring ioc container and explain a bunch of ways to specify init and destroy method per each bean class.

we talk about spring @Predestroy and @PostConstruct annotations that help us to specify init and destroy methods.

also we talk about other means of accessing lifecycle events like implementin InitializingBean and DisposableBean interfaces