SpringBoot 笔记

时代背景:

微服务
分布式
云原生:docker、kubernetes

自动配置原理

依赖管理

父项目负责依赖管理
导入starter场景启动器
无需关注版本号,自动版本仲裁

自动配置

自动配好Tomcat
自动配好SpringMVC
自动配好Web常见功能,如:字符编码问题

组件添加

@Configuration
@Bean @Component @Controller @Service @Repository
@ComponentScan @Import
@Conditional

单元测试 junit5
指标监控 actuator、可视化界面boot admin

你可能感兴趣的:(springboot)