To include additional configuration files in a Spring Boot project, the _____ property can be used.
- boot.config.files
- config.additional
- spring.config.name
- spring.extra.config
In Spring Boot, you can include additional configuration files using the spring.config.name property. This property allows you to specify the base name of the configuration files to be loaded. The default value is "application," so if you have a custom configuration file like "myapp.properties," you can specify it as spring.config.name=myapp in your application.properties or application.yml file.
Loading...
Related Quiz
- For integration testing in Spring Boot, the _____ annotation is used to specify that only certain parts or layers of the application should be loaded.
- In Spring Boot, how do you configure the TestRestTemplate to work with a specific profile during integration testing?
- To handle an exception thrown by a specific method in a controller, the _____ annotation is used on a method within that controller.
- What is the purpose of the @RestController annotation in a Spring Boot application?
- To customize the storage and retrieval of cache in Spring Boot, a developer can implement the _____ interface.