版本:
org.springframework.boot spring-boot-starter2.7.2
在学习使用spring.factories自动配置中遇到问题:
#Auto Configure org.springframework.boot.autoconfigure.EnableAutoConfiguration= com.it.bean.CartoonCatAndMouse
在自动配置类上如果没有加载@Component 注解则会找不到相应的bean
(原来是使用 @Import 注解 进行加载相关的类,并不需要@Component 注解)



