总结springboot注解之:@SpringBootApplication
点开@SpringBootApplication:
This is a convenience * annotation that is equivalent to declaring {@code @Configuration}, * {@code @EnableAutoConfiguration} and {@code @ComponentScan}.
这个注释表示这是一个配置类,加上这个注解就会触发自动装配和注解扫描,扫描属于springboot管理的bean,说这个注释等同于同时加上了 @Configuration @EnableAutoConfiguration 和 @ComponentScan三个注解.