从零搭建 REST API:IoC、MVC、数据访问、安全、测试与监控,对接 spring-boot / backend 路线图。
登录后追踪本课程进度 —登录
Spring Boot 是什么
与 Spring 的关系、约定优于配置、第一个 Hello API。
Starter 与自动配置
starter-web、starter-jdbc;@SpringBootApplication 做了什么。
配置与 Profile
application.yml、环境变量、dev/prod 切换。
IoC 与依赖注入
@Component、@Service、构造器注入、解耦 Controller 与 Service。
Bean 作用域与生命周期
singleton、prototype;@Configuration 与 @Bean。
Spring AOP 入门
切面、通知类型;日志与权限横切关注点。
Spring MVC 与 REST
@RestController、路径变量、请求体、统一响应。
参数校验与异常处理
@Valid、全局 @ControllerAdvice、业务错误码。
JDBC 与 MyBatis
Mapper、SQL 映射;对照本站 MyBatis-Flex 用法。
Spring Data JPA 入门
Entity、Repository、何时选 JPA vs MyBatis。
事务管理
@Transactional、传播行为、rollback 规则。
Spring Security 基础
过滤器链、认证与授权概念。
JWT 与 API 鉴权
无状态 token、登录接口、受保护路由。
单元测试与 MockMvc
@SpringBootTest、@MockBean、接口测试。
Actuator 与健康检查
/actuator/health、指标与运维直觉。
综合练习与进阶路线
小 CRUD 项目清单;Spring Cloud 下一步。