S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which annotation is used to load initial data into the database during startup?

  • (A) @LoadData
  • (B) @EnableSQL
  • (C) @Sql
  • (D) @InitData
  • Correct Answer - Option(C)
  • Views: 10
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@Sql can be used in test classes to run SQL scripts before or after a test method.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.