In Spring Boot's project structure, where should the application properties file be placed?

  • src/application.properties
  • src/main/java/application.properties
  • src/main/resources/application.properties
  • src/resources/application.properties
In Spring Boot's project structure, the application properties file should be placed in the "src/main/resources" directory with the filename "application.properties." This is the standard location for configuration properties in a Spring Boot application. Placing it elsewhere or with a different name may require custom configuration.
Add your answer
Loading...

Leave a comment

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