Tagged articles

DisposableBean

4 articles · Page 1 of 1
LuTiao Programming
LuTiao Programming
Mar 9, 2026 · Backend Development

Spring Boot’s Hidden Power: 10‑Step Bean Lifecycle Most Developers Miss

Most Spring Boot developers use @Service, @Component and @Autowired daily, yet few understand the ten‑step lifecycle a bean undergoes—from loading its definition to destruction—information that unlocks advanced features such as custom initialization, AOP, and dynamic proxy creation.

Bean LifecycleBeanPostProcessorDependency Injection
0 likes · 7 min read
Spring Boot’s Hidden Power: 10‑Step Bean Lifecycle Most Developers Miss
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