S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which method is used to shut down a Spring Boot application programmatically?

  • (A) System.exit()
  • (B) SpringApplication.shutdown()
  • (C) SpringApplication.exit()
  • (D) ApplicationContext.shutdown()
  • Correct Answer - Option(C)
  • Views: 10
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
SpringApplication.exit() is used to shut down a Spring Boot app programmatically.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.