📜  如何注册自定义自动配置? - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:33.093000             🧑  作者: Mango

代码示例1
To register an auto-configuration class, 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