All Articles

The
Blog

Discover 160 articles.

springboot
#4

RESTful API 与 Web 开发

掌握 @RestController、@RequestMapping 系列注解、@PathVariable/@RequestParam/@RequestBody 参数绑定、REST 风格 URL 设计、响应封装与 @Validated 参数校验

Read More
springboot
#5

数据访问:JPA 与 MyBatis

Spring Data JPA 实体映射与 Repository 接口、MyBatis-Plus 增强用法、JdbcTemplate 原始查询、事务管理(@Transactional 传播行为与隔离级别)完整指南

Read More
springboot
#6

多环境配置与外部化配置

application-{profile}.yml 多环境切换、@ConfigurationProperties 强类型配置绑定、@Value 占位符、配置加密与自定义配置加载顺序

Read More
springboot
#7

Spring Security 安全认证

Spring Security 6.x 核心架构、认证与授权概念、基于 JWT 的无状态登录实现、OAuth 2.0 资源服务器入门、@PreAuthorize 方法级安全注解

Read More
springboot
#8

单元测试与集成测试

@SpringBootTest 集成测试、@MockBean 模拟依赖、@WebMvcTest 切片测试 REST 接口、AssertJ 断言库、测试数据库配置与 Spring Boot Test 新特性

Read More
springboot
#9

Docker 容器化与生产部署

Spring Boot fat jar 原理、分层 Docker 镜像构建(layered jar)、docker-compose 多容器编排、GitHub Actions CI/CD 流水线与生产环境配置示例

Read More