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.
Add your answer
Loading...

Leave a comment

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