Spring Boot 简单了解
Spring Boot
结构
- spring-boot
- 提供Application类,便捷启动,以及刷新ApplicationContext
- 嵌套可选择性Web服务容器
- 外部配置
- 让ApplicationContext初始化配置更为方便,包括日志等
- spring-boot-autoconfigure
- 自动注入
- spring-boot-starters
- 三方包支持
- spring-boot-cli
- spring-boot 终端命令
- spring-boot-actuator
- 提供自身以及监控功能
- spring-boot-actuator-autoconfigure
- spring-boot-actuator相关自动注入
- spring-boot-test
- spring-boot 测试
- spring-boot-test-autoconfigure
- 自动配置
- spring-boot-loader
- 我理解是单元化测试加载相关项目
- spring-boot-devtools
- 运维相关工具
个人理解
1 | spring-boot 是spring 全家桶的易上手版,其中的自动注入,以及starters都是蛮好的思想,主要可以看这两个,其他的还是要看下spring相关的源码设计。 |
大佬的面试总结
- 梁桂钊 链接