:herb: 基于springboot的快速学习示例,整合自己遇到的开源框架,如:rabbitmq(延迟队列)、Kafka、jpa、redies、oauth2、swagger、jsp、docker、k3s、k3d、k8s、mybatis加解密插件、异常处理、日志输出、多模块开发、多环境打包、缓存cache、爬虫、jwt
Spring Boot Quick is a comprehensive, enterprise-grade learning platform featuring 80+ production-ready modules demonstrating real-world microservice architectures and distributed system patterns using Spring Boot, Dubbo, and Spring Cloud.
Perfect for:
| Feature | Description |
|---|---|
| 80+ Production Modules | Battle-tested examples covering real-world scenarios |
| ️ Microservice Architecture | Dubbo, Spring Cloud, and cloud-native patterns |
| ️ Multi-Database Support | MyBatis, JPA, MongoDB, HBase integration |
| Message Queue Integration | RabbitMQ, Kafka, RocketMQ, ActiveMQ examples |
| Enterprise Security | OAuth2, JWT, Shiro, CAS authentication flows |
| ☁️ Cloud-Native Ready | Docker, Kubernetes (K8s/K3s/K3d), container orchestration |
| ⚡ Performance Optimization | Caching, async processing, connection pooling (Druid) |
| Monitoring & Observability | Actuator, health checks, metrics, thread monitoring |
| ️ Developer Tools | Swagger, Lombok, Maven Plugins, code generation |
| Multi-Environment Deploy | Profiles, assembly packing, multi-env configuration |
# Clone repository
git clone https://github.com/vector4wang/spring-boot-quick.git
cd spring-boot-quick
# Build entire project
mvn clean install -U
# Build specific module
cd quick-swagger
mvn clean install
# Run example
mvn spring-boot:run# Run Swagger API documentation server
cd quick-swagger
mvn spring-boot:run
# Visit: http://localhost:8080/swagger-ui.html
# Run MyBatis + Druid demo
cd quick-mybatis-druid
mvn spring-boot:run
# Health check: http://localhost:8080/health
# Run JWT authentication example
cd quick-jwt
mvn spring-boot:run…| Layer | Technologies | Versions |
|---|---|---|
| Framework | Spring Boot | 2.3.4.RELEASE |
| Cloud | Spring Cloud Alibaba | 2.2.5.RELEASE |
| RPC | Apache Dubbo | 2.7.11 |
| ORM | MyBatis, JPA | 3.5.6, latest |
| Message Queue | RabbitMQ, Kafka, RocketMQ | - |
| Cache | Redis | - |
| Security | Shiro, OAuth2, JWT | 1.9.1 |
| Database | Druid, MySQL, MongoDB, HBase | - |
| Container | Docker, Kubernetes | latest |
| Tools | Swagger/OpenAPI, Lombok, Maven | 2.7+ |
Code Quality
Performance
Security
Scalability
Q: Is this project maintained?
A: Yes! While the author primarily uses Go for new projects, this learning repository is actively maintained as a comprehensive Spring Boot reference.
Q: Can I use this in production?
A: These are learning examples. For production, apply security hardening, performance tuning, and requirements-specific modifications.
Q: Which versions should I use?
A: Recommend using (latest - 1 or 2) versions for stability. Latest versions may have undiscovered issues.
Q: How to contribute?
A: Fork → Create Feature Branch → Commit → Push → Submit PR. Ensure code compiles and runs correctly.
Q: Is there Chinese documentation?
A: See 中文部分 below.
We welcome contributions! Please:
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)Contribution Guidelines:
mvn clean installSpring Boot Quick 是一个企业级 Spring Boot 学习平台,包含 80+ 个生产级别模块,展示使用 Spring Boot、Dubbo 和 Spring Cloud 构建的真实微服务架构和分布式系统设计模式。
适用人群:
| 特性 | 说明 |
|---|---|
| 80+ 生产级模块 | 经过验证的真实场景示例 |
| ️ 微服务架构 | Dubbo、Spring Cloud 和云原生模式 |
| ️ 多数据库支持 | MyBatis、JPA、MongoDB、HBase 集成 |
| 消息队列集成 | RabbitMQ、Kafka、RocketMQ、ActiveMQ 示例 |
| 企业级安全 | OAuth2、JWT、Shiro、CAS 认证流程 |
| ☁️ 云原生就绪 | Docker、Kubernetes(K8s/K3s/K3d) 容器编排 |
| ⚡ 性能优化 | 缓存、异步处理、连接池(Druid) |
| 监控可观测性 | Actuator、健康检查、指标、线程监控 |
| ️ 开发工具 | Swagger、Lombok、Maven 插件、代码生成 |
| 多环境部署 | Profiles、assembly 打包、多环境配置 |
# 克隆仓库
git clone https://github.com/vector4wang/spring-boot-quick.git
cd spring-boot-quick
# 构建整个项目
mvn clean install -U
# 构建特定模块
cd quick-swagger
mvn clean install
# 运行示例
mvn spring-boot:run# 运行 Swagger API 文档服务
cd quick-swagger
mvn spring-boot:run
# 访问: http://localhost:8080/swagger-ui.html
# 运行 MyBatis + Druid 演示
cd quick-mybatis-druid
mvn spring-boot:run
# 健康检查: http://localhost:8080/health
# 运行 JWT 认证示例
cd quick-jwt
mvn spring-boot:run…| 层级 | 技术 | 版本 |
|---|---|---|
| 框架 | Spring Boot | 2.3.4.RELEASE |
| 云平台 | Spring Cloud Alibaba | 2.2.5.RELEASE |
| RPC | Apache Dubbo | 2.7.11 |
| ORM | MyBatis、JPA | 3.5.6、latest |
| 消息队列 | RabbitMQ、Kafka、RocketMQ | - |
| 缓存 | Redis | - |
| 安全 | Shiro、OAuth2、JWT | 1.9.1 |
| 数据库 | Druid、MySQL、MongoDB、HBase | - |
| 容器 | Docker、Kubernetes | latest |
| 工具 | Swagger/OpenAPI、Lombok、Maven | 2.7+ |
代码质量
性能优化
安全防护
可扩展性
Q: 这个项目还在维护吗?
A: 是的!虽然作者目前主要使用 Go,但本学习库作为 Spring Boot 综合参考资源持续维护。
Q: 可以用于生产环境吗?
A: 这些是学习示例。生产环境需要根据需求进行安全加固、性能调优和功能扩展。
Q: 应该使用哪个版本?
A: 推荐使用 (最新-1 或 -2) 版本以获得稳定性。最新版本可能存在未知问题。
Q: 如何贡献代码?
A: Fork → 创建分支 → 提交 → Push → 提交 PR。确保代码能正常编译运行。
Q: 有中文文档吗?
A: 有的,本 README 包含完整中文内容。
欢迎贡献!请按以下步骤操作:
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)贡献指南:
mvn clean installNo open issues yet, or sync has not completed.