批注接口的使用
org.springframework.boot.autoconfigure.EnableAutoConfiguration
使用EnableAutoConfiguration的程序包
-
org.springframework.boot.autoconfigure中EnableAutoConfiguration的使用
修饰符和类型类说明@interface
Indicates aconfiguration
class that declares one or more@Bean
methods and also triggersauto-configuration
andcomponent scanning
.