批注接口的使用
org.springframework.boot.autoconfigure.EnableAutoConfiguration
使用EnableAutoConfiguration的程序包
-
org.springframework.boot.autoconfigure中EnableAutoConfiguration的使用
修饰符和类型类说明@interfaceIndicates aconfigurationclass that declares one or more@Beanmethods and also triggersauto-configurationandcomponent scanning.