@SpringBootApplication :springbootconfiguration + enableautoconfiguration + componentscan
自动配置原理:所有的starter都导入了spring-boot-starter,spring-boot-starter导入了spring-boot-autoconfigure,包含了各种场景的自动配置类,@enableautoconfiguration按需加载自动配置类XxxAutoConfiguration(通过自动配置类的条件注解@conditionOnXxx),自动配置类有注解@enableconfigurationproperties(配置属性类.class),配置属性类XxxProperties与配置文件中的配置项绑定,如ServerProperties绑定tomcat服务器的有关配置,自动配置类向容器导入各种组件,组件从配置属性类获取属性值。