Catching SIGTERM signal in Spring

public class AppCloseEventListener implements ApplicationListener<ContextClosedEvent> {

public void onApplicationEvent(ContextClosedEvent event) {





Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

3 Tips to Modernize your Cisco ISE Deployment

How to sort your life with Bubble Sort


Grid-based game with Unity: dev-log day 2

Fisher-Yates Algorithm

How to build and update a container running on Google Compute Engine (GCE) based on a Github commit

A school of trigger(fishes); Photo by Ursula Krapf on Unsplash

Resolve Code Completion Issues in Eclipse or SAP ADT on Macbook

Bit Manipulation

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Krishna Murari

Krishna Murari

More from Medium

Collection Framework in Java

Code structure in Java

Top Performance issues every Java developer/architect must know — part 3 — Memory

Spring explained: What is Spring? And what is Spring Boot?