一、SpringBoot简介
1.更广泛的+快速的spring开发体验。
2.一系列开箱即用的starter。
3.一系列非功能性的自动化配置。
4.没有xml配置文件生成
二、SpringBoot工程创建(三种方式)
1.在线创建 http://start.spring.io
2.通过IDE来创建 (idea,eclipse(STS))
3.通过改造一个普通的maven工程实现
详情请见:http://www.javaboy.org/2019/0412/springboot-init.html
三、启动类上的注解 (@SpringBootApplication)
1.@SpringBootConfiguration 配置类
2.@EnableAutoConfiguration 开启自动化配置
3.@ComponentScan 扫描所在包 子包下面的所有类
属性 basePackages=" *** " 扫描的包名