For creating custom auto-configuration in Spring Boot, the configuration class needs to be listed in the _____ file.
- META-INF/application-context.xml
- META-INF/spring.factories
- application.properties
- application.yaml
When creating custom auto-configuration in Spring Boot, the configuration class needs to be listed in the META-INF/spring.factories file. This file is used to declare the mapping between auto-configuration classes and their associated configurations. Spring Boot scans this file during application startup and automatically applies the configurations specified for your custom auto-configuration.
Loading...
Related Quiz
- To resolve ambiguity and specify which bean should be wired when there are multiple beans of the same type, one can use the _____ annotation in Spring
- How can you implement Token Enhancement to include additional information in the OAuth2 access token?
- How can you configure an array of values using the YAML configuration file in Spring Boot?
- In OAuth2, what is the purpose of the Refresh Token?
- For optimizing the performance of RESTful APIs in Spring Boot, developers can enable _____ to compress the HTTP response.