Which Spring Boot property is used to define the URL of the database?

  • spring.datasource.url
  • spring.application.name
  • server.port
  • spring.main.web-application-type
In Spring Boot, the property spring.datasource.url is used to define the URL of the database. This property specifies the database connection URL, including the protocol, host, port, and database name. It is an essential configuration when connecting to a database in a Spring Boot application. The other options are unrelated to defining the database URL.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *