After my application finishes I want to close the spring context. The relevant code has an ApplicationContext reference but I couldn't find a close method.
ApplicationContext
close
Downcast your ApplicationContext to ConfigurableApplicationContext which defines close() method:
ConfigurableApplicationContext
close()
((ConfigurableApplicationContext)appCtx).close();
1.4m articles
1.4m replys
5 comments
56.9k users