S

Shyam Dubey • 3.70K Points
Extraordinary

Q. How does Spring Boot know which type of database to use?

  • (A) From spring.datasource.database-type
  • (B) From spring.datasource.url
  • (C) From spring.database.path
  • (D) From application.class
  • Correct Answer - Option(B)
  • Views: 6
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
spring.datasource.url includes the database type in the JDBC URL (e.g., jdbc:mysql, jdbc:h2).

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.