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.
Loading...
Related Quiz
- In Spring Boot, how do you handle conflicts between properties defined in the application properties file and environment variables?
- How can you configure a custom method security expression handler in Spring Security?
- In Spring Security, which interface is primarily used for authentication and authorization?
- The Spring Boot _____ properties file allows users to configure the application's settings.
- What is the primary role of the @RestController annotation in Spring Boot?