In a Spring Boot application, which file is commonly used to define database connection properties?
- application.properties
- application.yml
- main.java
- build.gradle
In Spring Boot, the application.properties file is commonly used to define database connection properties. This file allows you to configure various aspects of your Spring Boot application, including database-related settings such as connection URLs, usernames, and passwords. The other options are not typically used for defining database connection properties.
Loading...
Related Quiz
- What is the significance of the @MockBean annotation in Spring Boot testing?
- What is the significance of Garbage Collection optimization in Spring Boot, and how can it impact application performance?
- In Spring Boot, which annotation is used to conditionally enable caching only when a certain property is set?
- To include Spring MVC in a Spring Boot project, the _____ starter dependency should be added.
- What is the primary use of WebFlux in a Spring Boot application?