12345678910



Question 1: How to shutdown the Spring IoC container gracefully in non-web applications?
1. Using shutdownNow()
2. registerShutdownHook()