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.
Loading...
Related Quiz
- Reactive Streams in Spring Boot offer _____ to handle the flow of data between the producer and consumer.
- For custom authentication logic in Spring Security, developers can create a bean of type _____.
- When using the @WebMvcTest annotation in Spring Boot, only the _____ are typically loaded into the application context.
- When creating a custom query in Spring Data JPA, the _____ annotation is used to modify the underlying query execution.
- How would you design a Spring Cloud application to handle failovers and service unavailability, ensuring minimal impact on the user experience?