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.
Add your answer
Loading...

Leave a comment

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