S

Shyam Dubey • 3.70K Points
Extraordinary

Q. What is the use of CommandLineRunner in Spring Boot?

  • (A) To run code after security setup
  • (B) To test data layer
  • (C) To run code after the application context is loaded
  • (D) To configure logging
  • Correct Answer - Option(C)
  • Views: 11
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
CommandLineRunner runs specific code once the application context is fully initialized.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.