S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which of the following is a correct way to shut down a Spring Boot app?

  • (A) By deleting application.yml
  • (B) By calling SpringApplication.exit()
  • (C) By removing @SpringBootApplication
  • (D) By throwing an exception
  • Correct Answer - Option(B)
  • Views: 12
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
SpringApplication.exit() allows graceful shutdown of a Spring Boot app.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.