Google News
logo
Java Spring Boot - Interview Questions
How to register a custom auto-configuration?
Spring Boot checks for a META-INF/spring.factories file within your published jar for the auto-configuration classes. To register our custom auto-configuration class, we should use a fully qualified name of the class under the EnableAutoConfiguration in the spring.factories property file.
 
org.springframework.boot.autoconfigure.EnableAutoConfiguration=com.javadevjournal.config.HelloServiceAutoConfiguration
Advertisement