yidao620c/SpringBootBucket
yidao620c/SpringBootBucket has 1,050 GitHub stars and 701 forks. Star changes are not measured yet. Last checked 2026-11-09 11:32 UTC. Last push 2026-09-27.
Springboot bucket
Measured star growth
- in 24h
- Update delayed
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalSpringBoot 4.x 全家桶
SpringBootBucket4.x全家桶基于最新版本 Spring Boot 4.x 版本编写。Spring Boot 4.0基于Spring Framework 7.0,全面支持 Java25(含虚拟线程优化)。核心的新特性包括:HTTP Service Clients 简化远程调用;原生API版本管理;全面采用JSpecify空安全体系(默认为空,编译器防NPE);关键依赖升级至Jackson 3.0、Tomcat 11、Hibernate 7.1等;支持Gradle 9;Redis静态主从配置;移除Undertow。
Spring Boot 现在已经成为Java 开发领域的一颗璀璨明珠,它本身是包容万象的。本项目对目前 Java Web 开发中常用的各项技术,通过和 Spring Boot 的集成,以「一篇博客 + 一个可运行项目」的形式详细说明。
每个子项目只引入完成该主题所需的最小依赖,可独立运行,也可按业务需要自由组合。
基于 Spring Boot 2.0 的旧版教程已归档至
springboot2.0分支,保持只读不再维护。
版本基线
| 项 | 版本 |
|---|---|
| JDK | 21(Spring Boot 4 基线为 17,推荐 21 / 25) |
| Spring Boot | 4.1.1 |
| Spring Framework | 7.0.9 |
| Maven | 3.9 |
| 容器 | Tomcat 11(内置,Undertow 已在 4.0 移除) |
| JSON | Jackson 3(tools.jackson 包名) |
环境准备
依赖外部中间件的主题(数据库、缓存、消息队列)统一使用 Docker Compose 编排,无需在宿主机单独安装:
docker compose up -d # 启动 MySQL / MongoDB / Redis / RabbitMQ
docker compose ps # 查看容器与健康状态
docker compose down # 停止
docker compose down -v # 停止并清空数据
| 服务 | 端口 | 账号 |
|---|---|---|
| MySQL 8.4 | 3306 | root / root123456 |
| MongoDB 8.0 | 27017 | root / root123456 |
| Redis 8.0 | 6379 | 密码 root123456 |
| RabbitMQ 4(含管理台) | 5672 / 15672 | admin / admin123456 |
各主题所需的建库建表脚本放在对应工程的 src/main/resources/sql/ 下,具体步骤见该工程的 README。
运行方式
每个子项目均可独立运行:
cd springboot4-xxx
mvn clean package
java -jar target/springboot4-xxx-1.0.0.jar
也可以直接在 IDE 中运行启动类的 main 方法。默认端口为 8080,如与本地服务冲突,在 application.yml 中调整 server.port。
主题索引
进度以 待编写 → 进行中 → 已完成 标记。
P-1 Web 与数据
P-2 中间件与集成
P-3 工程化与安全
P-4 生产化
P-5 前沿
| 项目 | 文章 | 状态 |
|---|---|---|
| springboot4-ai-mcp | SpringBoot4系列30 - 用Spring AI把业务接口暴露成MCP工具 | 已完成 |
目录结构
.
├── articles/ # 教程文章(Markdown)
├── springboot4-xxx/ # 各主题可运行工程
├── docker-compose.yml # 本地中间件编排
许可证
Copyright (c) 2018-2026 Xiong Neng
基于 MIT 协议发布:http://www.opensource.org/licenses/MIT
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
561,582 starspublic-apis/public-apis
A collective list of free APIs
497,899 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
449,608 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,302 stars