0 votes
92 views
in Spring Boot by
How to register a custom auto-configuration?

1 Answer

0 votes
by (1.7k points)
To register auto-configuration class with spring boot, we must have its fully-qualified name listed under the EnableAutoConfiguration key in the META-INF/spring.factories file:

org.springframework.boot.autoconfigure.EnableAutoConfiguration=com.baeldung.autoconfigure.CustomAutoConfiguration

If we make a project with Maven, that file should be placed in the resources/META-INF directory, which will end up in the mentioned location during the package phase.

Share:- Whatsapp Facebook Facebook


Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.

Categories

...