![96d60a083a90541b09f3504a338952ef.png](https://img-blog.csdnimg.cn/img_convert/96d60a083a90541b09f3504a338952ef.png)
本章目的
探索springboot背后的注解,逐渐解开其神秘面纱。
系统版本
- jdk1.8
- springboot 2.1.6.RELEASE
- 开发工具(IntelliJ IDEA 2018.1.5 x64)
- apache maven(3.6.0,本章采用maven形式管理jar包,具体配置环境变量以及使用请自行查找资料)
- 开始。。。
- 我们首先分析入口类Application的启动注解@SpringBootApplication,进入源码:
@Target(ElementType.TYPE)@Retention(RetentionPolicy.RUNTIME)@Documented@Inherited@SpringBootConfiguration@EnableAutoConfiguration@ComponentScan(excludeFilters = { @Filter(type = FilterType.CUSTOM, classes = TypeExcludeFilter.class), @Filter(type = FilterType.CUSTOM, classes = AutoConfigurationExcludeFilter.class) })public @