I have an app that was using Spring Boot 1.1.8, and I have a core configuration class (Application.groovy) that had a custom destroy() method implemented that did some tidy up:
@Configuration
@ComponentScan
@EnableAsync(proxyTargetClass=true)
@EnableAutoConfiguration
class Application extends SpringBootServletInitializer {
...
public void destroy() {
//do cleanup stuff
}
}
Everything was running fine - I saw the following log message (as well as many other invoke destroy messages):
o.s.b.f.support.DisposableBeanAdapter : Invoking destroy() on bean with name 'application'
I have now upgraded to 1.2.2 of Spring Boot and the destroy method is no longer being invoked - Anyone know why this has stopped being invoked? I still see a few entries in the log of destroy() methods being invoked, but much less than previously.
Aucun commentaire:
Enregistrer un commentaire