从@SpringBootApplication开始
这是一个复合注解1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 ({ElementType.TYPE})
(RetentionPolicy.RUNTIME)
(
excludeFilters = { (
type = FilterType.CUSTOM,
classes = {TypeExcludeFilter.class}
), (
type = FilterType.CUSTOM,
classes = {AutoConfigurationExcludeFilter.class}
)}
)
public SpringBootApplication {
...
}
@SpringBootConfiguration
这也是一个复合注解1
2
3
4
5
6 ({ElementType.TYPE})
(RetentionPolicy.RUNTIME)
public SpringBootConfiguration {
}
实质就是@Configuration 一般用于快速配置ioc容器