Defined starting dependent on engineering xxx-spring-boot-starter (starting encapsulates the desired dependence of all other dependent jar package)
自动装配工程 xxx-spring-boot-starter-autoconfigure
Create a META-INF / spring.factories file resources directory automatic assembly project xxx-spring-boot-starter-autoconfigure of
并在该配置文件中定义自动装配的配置类XxxAutoConfiguration
例:org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.itheima.redis.config.XxxAutoConfiguration