Tagged articles
3 articles
Page 1 of 1
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 5, 2025 · Backend Development

Master Spring Boot Lifecycle: Init & Destroy Callbacks Explained

This article explains Spring Boot’s bean lifecycle callbacks, covering InitializingBean and DisposableBean interfaces, @PostConstruct and @PreDestroy annotations, initMethod and destroyMethod configurations, as well as alternative approaches like SmartInitializingSingleton, ContextRefreshedEvent, and AutoCloseable, with code examples and execution order details.

DisposableBeanInitializingBeanLifecycle
0 likes · 7 min read
Master Spring Boot Lifecycle: Init & Destroy Callbacks Explained
Programmer DD
Programmer DD
Sep 22, 2018 · Backend Development

Why kill -9 vs kill -15? Mastering Graceful Shutdown in Spring Boot

This article explains the difference between kill -9 and kill -15 signals, how Spring Boot processes the TERM signal, and provides practical code examples for implementing graceful shutdown, including shutdown hooks, DisposableBean, and proper thread‑pool termination strategies.

DisposableBeanGraceful ShutdownLinux signals
0 likes · 17 min read
Why kill -9 vs kill -15? Mastering Graceful Shutdown in Spring Boot