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.
After my application finishes I want to close the spring context. The relevant code
Share
Downcast your
ApplicationContexttoConfigurableApplicationContextwhich definesclose()method: