1.谈谈你对Spring Boot的理解?
配置变的简单,不像原先spring繁琐,使用.yml 和.properties 如果要使用xml 可以使用@ImportResource注解
jar包,可以支持独立运行
自动配置 @EnableAutoConfigration
读取配置(@ConfigrationProperties) @Value
@Service
@Repostroy
@Component
2. 开启SpringBoot特性的两种方式
(1)继承spring-boot-starter-parent
(2)导入spring-boot-dependencies
3.核心注解
@SpringBootApplitation
包含了
@SpringBootConfigration 配置文件
@AutoConfigration 自动配置
@ComponentScan 组件扫描
4.配置的加载顺序
properties -> yml -> 系统环境变量 -> 命令行