Biscuit128
Biscuit128

Reputation: 5408

Why is @PreDestroy being invoked

I have a Spring boot app running in docker on ECS

I can see that my @PreDestory method is being invoked on my @Component classes (added to gracefully shutdown an ExecutorService) but even with Trace logging level set I cannot see why. Is there a way to add a shutdown hook that provides information as to what event caused the shutdown to occur.

Upvotes: 1

Views: 267

Answers (0)

Related Questions