What is the primary file used to define properties in Spring Boot?

  • application.properties
  • application.yml
  • bootstrap.properties
  • config.properties
In Spring Boot, the application.properties file is the primary file used to define properties. This file allows you to configure various aspects of the application, such as server port, database connections, etc. The application.properties file is typically located in the src/main/resources directory, and its properties are loaded at runtime by Spring Boot. The properties defined in this file can also be overridden by external configurations.
Add your answer
Loading...

Leave a comment

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