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