启动类@SpringBootApplication注解里面包含了两个注解@SpringBootConfiguration和@EnableAutoConfiguration。
//@SpringBootApplication 标注,是一个SpringBoot应用
@SpringBootApplication
public class SpringbootdemoApplication {
public static void main(String[] args) {
SpringApplication.run(SpringbootdemoApplication.class, args);
}
}
@SpringBootConfiguration//核心
@EnableAutoConfiguration//核心
@ComponentScan(excludeFilters = { @Filter(type = FilterType.CUSTOM, classes = TypeExcludeFilter.class),
@Filter(type = FilterType.CUSTOM, classes = AutoConfigurationExcludeFil
标签:SpringbootdemoApplication,SpringBootApplication,CUSTOM,public,开箱,即用,type,class,S
From: https://blog.csdn.net/xing_jian1/article/details/143485642