Does Spring's `Controller` have any sort of destroy/cleanup method? I couldn't find anything in the JavaDocs for `Controller` and `AbstractController`. I'm looking for the equivalent of `javax.servlet.Servlet`'s `destroy()` method.
The reason for this is that I'm starting a thread in my Spring controller. I want the thread to terminate whenever the controller is taken out of server (such as when the container is shutdown).
This isn't an "answer", but you probably don't really want to be starting a thread within a controller... sounds messy and like a break of the abstraction layers